MACHIN
This commit is contained in:
25
6/node_modules/jasmine-node/spec/SampleSpecs.js
generated
vendored
Normal file
25
6/node_modules/jasmine-node/spec/SampleSpecs.js
generated
vendored
Normal file
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user