Skip to content

Instantly share code, notes, and snippets.

@hartbit
Created March 7, 2012 08:55
Show Gist options
  • Select an option

  • Save hartbit/1992031 to your computer and use it in GitHub Desktop.

Select an option

Save hartbit/1992031 to your computer and use it in GitHub Desktop.
Alternative Expecta Naming
expect(object).beTruthy();
expect(object).to.beTruthy(); // to = no-op
expect(object).toNot.beTruthy(); // noNot = Not
expect(object).will.beTruthy(); // will = isGoing
expect(object).willNot.beTruthy(); // willNot = isNotGoing
// OR ALTERNATIVE CEDAR STYLE
expect(object).be_truthy();
expect(object).to.be_truthy();
expect(object).to_not.be_truthy();
expect(object).will.be_truthy();
expect(object).will_not.be_truthy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment