X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=test%2Fspec%2Fsample.spec.js;h=730f91891675588bebdf3ba2b9a46f87e5759426;hp=f9c001be1420c7b35101addc5c2b3059143c461e;hb=cd98664aa255423195fd3a63d7b738171a25ae28;hpb=a0e050a61a747a903bd12a97ab9c869cbc6c3705 diff --git a/test/spec/sample.spec.js b/test/spec/sample.spec.js index f9c001b..730f918 100644 --- a/test/spec/sample.spec.js +++ b/test/spec/sample.spec.js @@ -1,25 +1,31 @@ -describe('jasmine-node', function(){ +/* Copyright (c) 2013 Index Data ApS. http://indexdata.com + * + * jQuery sample from system documentation + * + */ - it('should pass', function(){ - expect(1+2).toEqual(3); - }); +describe('jasmine-node', function () { - it('shows asynchronous test', function(){ - setTimeout(function(){ - expect('second').toEqual('second'); - asyncSpecDone(); - }, 1); - expect('first').toEqual('first'); - asyncSpecWait(); - }); + it('should pass', function () { + expect(1 + 2).toEqual(3); + }); - it('shows asynchronous test node-style', function(done){ - setTimeout(function(){ - expect('second').toEqual('second'); - // If you call done() with an argument, it will fail the spec - // so you can use it as a handler for many async node calls - done(); - }, 1); - expect('first').toEqual('first'); - }); + it('shows asynchronous test', function () { + setTimeout(function () { + expect('second').toEqual('second'); + asyncSpecDone(); + }, 1); + expect('first').toEqual('first'); + asyncSpecWait(); + }); + + it('shows asynchronous test node-style', function (done) { + setTimeout(function () { + expect('second').toEqual('second'); + // If you call done() with an argument, it will fail the spec + // so you can use it as a handler for many async node calls + done(); + }, 1); + expect('first').toEqual('first'); + }); });