X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fsample.spec.js;h=897920677f7f98d5b1e6111d8e6cefee3d2c6726;hb=252fc09560a82fcbadbb8ad7d2dc7176d773f359;hp=cad1b90b5814a25cf9438789a668fcad9bb2104a;hpb=4d36f9548170d7755458cb76fd2a4fc03e9ed28b;p=mkws-moved-to-github.git diff --git a/test/spec/sample.spec.js b/test/spec/sample.spec.js index cad1b90..8979206 100644 --- a/test/spec/sample.spec.js +++ b/test/spec/sample.spec.js @@ -4,28 +4,28 @@ * */ -describe('jasmine-node', function(){ +describe('jasmine-node', function () { - it('should pass', function(){ - expect(1+2).toEqual(3); - }); + it('should pass', function () { + expect(1 + 2).toEqual(3); + }); - it('shows asynchronous test', function(){ - setTimeout(function(){ - expect('second').toEqual('second'); - asyncSpecDone(); - }, 1); - expect('first').toEqual('first'); - asyncSpecWait(); - }); + 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'); - }); + 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'); + }); });