@sz-sw/expect
v3.3.1
Published
Functions to make assertions (for example in unit testing).
Downloads
15
Readme
@sz-sw/expect
Functions to make assertions (for example in unit testing).
Usage:
const {createExpectationsContext} = require("@sz-sw/expect")
const {expect, end} = createExpectationsContext()
expect.assertions(1) // Can only be called once per context
expect(1).toBe(1)
end()