1 describe('jasmine-node', function(){
3 it('should pass', function(){
4 expect(1+2).toEqual(3);
7 it('shows asynchronous test', function(){
9 expect('second').toEqual('second');
12 expect('first').toEqual('first');
16 it('shows asynchronous test node-style', function(done){
17 setTimeout(function(){
18 expect('second').toEqual('second');
19 // If you call done() with an argument, it will fail the spec
20 // so you can use it as a handler for many async node calls
23 expect('first').toEqual('first');