to-be-or-not-to-be

1.0.0 • Public • Published

toBeOrNotToBe

Matchers are good. They make your code look like English. And Hamlet is the ultimate expression of the English language. So why not turning it into a matcher?

Install

npm i -s to-be-or-not-to-be

Usage

var toBeOrNotToBe = require('to-be-or-not-to-be')
 
describe("your description", function() {
  beforeEach(function() {
    jasmine.addMatchers(toBeOrNotToBe)
  })
 
  it("is raining or it is not raining", function() {
    expect("raining").toBeOrNotToBe(true)
    expect("raining").toBeOrNotToBe(false)
  })
})

Seriously?

Use tape.

Readme

Keywords

none

Package Sidebar

Install

npm i to-be-or-not-to-be

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators