- 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)