Skip to content

Shortcuts

Compare
Choose a tag to compare
@stalniy stalniy released this 16 Jul 10:55
· 318 commits to master since this release

The main purpose of this release was to add shortcuts its and it without a message. This allows to write subject specific tests easier.

Features

  • interface: adds support for its
  • interface: adds support for it without a message
describe('Array', () => {
  subject(() => [1, 2, 3])

  its('length', () => is.expected.to.equal(3))
  it(() => is.expected.to.be.an('array'))
})