Created
March 7, 2012 04:59
-
-
Save MichaelMartinez/1991023 to your computer and use it in GitHub Desktop.
Coffee-Script with Jasmine Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "StringCalc", -> | |
describe "constructor", -> | |
beforeEach -> | |
@mystrCalc = new StrCalc '1' | |
it 'extracts first number', -> | |
(expect @mystrCalc.add).toEqual(1) | |
Compiles to | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
describe("StringCalc", function() { | |
return describe("constructor", function() { | |
beforeEach(function() { | |
return this.mystrCalc = new StrCalc('1'); | |
}); | |
return it('extracts first number', function() { | |
return (expect(this.mystrCalc.add)).toEqual(1); | |
}); | |
}); | |
}); | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment