jasmine-sugar

0.1.0 • Public • Published

Build Status

jasmine-sugar adds some syntactic niceness to the Jasmine behavior-driven development framework for testing JavaScript code. More specifically, it allows for the passing of suite and spec definitions as a parameter to a returned function, instead of as a second parameter (which is of course still supported). This is especially handy with Coffeescript, where you will end up with:

describe("Foo") ->
  it("is red") -> expect(foo).toBeRed()

As opposed to vanilla Jasmine:

describe "Foo", ->
  it "is red", -> expect(foo).toBeRed()

Building from source

$ npm i
$ ./jake build

Running specs

$ ./jake spec [DEBUG=1] [SPEC=./spec/set.coffee]

Dependencies

  • underscore (~1.6)
  • node >= 0.8

License

MIT

Copyright

Rapid7 2014

Readme

Keywords

Package Sidebar

Install

npm i jasmine-sugar

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • joev