Skip to content

Instantly share code, notes, and snippets.

@jscn
Created December 17, 2011 21:44
Show Gist options
  • Save jscn/1491504 to your computer and use it in GitHub Desktop.
Save jscn/1491504 to your computer and use it in GitHub Desktop.
Hello world: node.js & jasmine-node
function hello_world() {return "Hello, world!";}
exports.hello_world = hello_world;
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