@webhandle/test-assert
v1.0.2
Published
A really simple version of the test and assert node native code. It doesn't do much, but at least I can use the same test cases in the browser.
Readme
@webhandle/test-assert
A really simple version of the test and assert node native code. It doesn't do much, but at least I can use the same test cases in the browser.
Install
npm i @webhandle/test-assertUsage
import {test, assert} from "@webhandle/test-assert"
await test("top level", async (t) => {
await t.test('test one', (t) => {
assert(true, "This should be true")
})
await t.test('test two', (t) => {
assert.equal(1, 1, "This should be true")
})
})Limitations
A lot. As of this writing, only general assert and assert.equal are implemented. Reporting is also very basic.
