Skip to content

v0.2.0

Choose a tag to compare

@MadcapJake MadcapJake released this 06 Sep 13:35
· 3 commits to master since this release
  • Added an async-test macro to easily handle asynchronous testing needs using builtin Earl-Grey async/await keywords.
async-test .async-macro-test:
   @plan(1)
   file = await read-file("./test/test.js")
   @equals(file.to-string().split(" ")[1], .test)

async keyword can still be used normally as a block but async-test removes the need to initiate the block (and one level of indentation).

test .internal-async-test:
   @plan(1)
   async:
      file = await read-file("./test/test.js")
      @equals(file.to-string().split(" ")[0], .var)