Created
December 17, 2011 21:44
-
-
Save jscn/1491504 to your computer and use it in GitHub Desktop.
Hello world: node.js & jasmine-node
This file contains hidden or 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 hello_world() {return "Hello, world!";} | |
exports.hello_world = hello_world; |
This file contains hidden or 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
var hello = require('../hello'); | |
describe('hello_world', function() { | |
it('should return hello world', function() { | |
var returned_string = hello.hello_world(); | |
expect(returned_string).toEqual("Hello, world!"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment