rename to run with node.js jasmine
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 21 Aug 2013 11:44:24 +0000 (13:44 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 21 Aug 2013 11:44:24 +0000 (13:44 +0200)
test/spec/SampleSpecs.js [deleted file]
test/spec/mkws-true.js [deleted file]
test/spec/sample.spec.js [new file with mode: 0644]
test/spec/true.spec.js [new file with mode: 0644]

diff --git a/test/spec/SampleSpecs.js b/test/spec/SampleSpecs.js
deleted file mode 100644 (file)
index f9c001b..0000000
+++ /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 (file)
index 798e876..0000000
+++ /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 (file)
index 0000000..f9c001b
--- /dev/null
@@ -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 (file)
index 0000000..798e876
--- /dev/null
@@ -0,0 +1,6 @@
+
+describe("A suite", function() {
+  it("contains spec with an expectation", function() {
+    expect(true).toBe(true);
+  });
+});