@sz-sw/expect

3.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @sz-sw/expect

Weekly Downloads

12

Version

3.3.1

License

MIT

Unpacked Size

27 kB

Total Files

38

Last publish

Collaborators

  • sz-coder