From a0e050a61a747a903bd12a97ab9c869cbc6c3705 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 21 Aug 2013 13:44:24 +0200 Subject: [PATCH] rename to run with node.js jasmine --- test/spec/SampleSpecs.js | 25 ------------------------- test/spec/mkws-true.js | 6 ------ test/spec/sample.spec.js | 25 +++++++++++++++++++++++++ test/spec/true.spec.js | 6 ++++++ 4 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 test/spec/SampleSpecs.js delete mode 100644 test/spec/mkws-true.js create mode 100644 test/spec/sample.spec.js create mode 100644 test/spec/true.spec.js diff --git a/test/spec/SampleSpecs.js b/test/spec/SampleSpecs.js deleted file mode 100644 index f9c001b..0000000 --- a/test/spec/SampleSpecs.js +++ /dev/null @@ -1,25 +0,0 @@ -describe('jasmine-node', function(){ - - 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 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'); - }); -}); diff --git a/test/spec/mkws-true.js b/test/spec/mkws-true.js deleted file mode 100644 index 798e876..0000000 --- a/test/spec/mkws-true.js +++ /dev/null @@ -1,6 +0,0 @@ - -describe("A suite", function() { - it("contains spec with an expectation", function() { - expect(true).toBe(true); - }); -}); diff --git a/test/spec/sample.spec.js b/test/spec/sample.spec.js new file mode 100644 index 0000000..f9c001b --- /dev/null +++ b/test/spec/sample.spec.js @@ -0,0 +1,25 @@ +describe('jasmine-node', function(){ + + 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 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'); + }); +}); diff --git a/test/spec/true.spec.js b/test/spec/true.spec.js new file mode 100644 index 0000000..798e876 --- /dev/null +++ b/test/spec/true.spec.js @@ -0,0 +1,6 @@ + +describe("A suite", function() { + it("contains spec with an expectation", function() { + expect(true).toBe(true); + }); +}); -- 1.7.10.4