1 /* Copyright (c) 2013 IndexData ApS. http://indexdata.com
3 * jQuery sample from system documentation
7 describe('jasmine-node', function(){
9 it('should pass', function(){
10 expect(1+2).toEqual(3);
13 it('shows asynchronous test', function(){
14 setTimeout(function(){
15 expect('second').toEqual('second');
18 expect('first').toEqual('first');
22 it('shows asynchronous test node-style', function(done){
23 setTimeout(function(){
24 expect('second').toEqual('second');
25 // If you call done() with an argument, it will fail the spec
26 // so you can use it as a handler for many async node calls
29 expect('first').toEqual('first');