Skip to content

Instantly share code, notes, and snippets.

@fivetanley
Created July 19, 2012 18:08
Show Gist options
  • Save fivetanley/3145729 to your computer and use it in GitHub Desktop.
Save fivetanley/3145729 to your computer and use it in GitHub Desktop.
jasmine example
describe 'some foo', ->
it 'meets some criteria', ->
something = true
expect( something ).toBe true
it 'looks a lot prettier than the js version', ->
coffeeScript = 'awesome'
expect( coffeeScript ).toEqual 'awesome'
describe 'nested', ->
it 'still looks prettier than the js version', ->
javascript =
room: Infinity
coffeeScript =
room: 1
expect( coffeeScript.room ).toBeLessThan( javascript.room )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment