@cool-utils/tester
v1.0.0
Published
Tests stuff.
Readme
@cool-utils/tester
Tests stuff.
USE
CODE
import tester from "@cool-utils/tester"
tester("tester", function(t){
t.ok(true)
t.notOk(false)
t.equal(typeof "a string!", "string")
t.notEqual(typeof 123, "boolean")
t.ok(false)
t.notOk(true)
t.equal(typeof 123, "boolean")
t.notEqual(typeof "a string!", "string")
t.test()
}, {
throwIfFail: false
})OUTPUT
┌───────────────────────┐
│ │
│ "tester" COMPLETE │
│ │
└───────────────────────┘
Results:
✓ Test #0: true
✓ Test #1: true
✓ Test #2: true
✓ Test #3: true
✗ Test #4: false
✗ Test #5: false
✗ Test #6: false
✗ Test #7: false