Skip to content

🎭 Matchers are good. They make your code look like English. And Hamlet is the ultimate expression of the English language.

Notifications You must be signed in to change notification settings

joaomilho/to-be-or-not-to-be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'),
    raining = require('./path/to/raining')

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.

About

🎭 Matchers are good. They make your code look like English. And Hamlet is the ultimate expression of the English language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published