Files
Lab4/6/node_modules/jasmine-node/spec/SampleSpecs.js
MishaBagger b6c10cc93f MACHIN
2023-10-25 09:15:21 +03:00

26 lines
654 B
JavaScript

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');
});
});