mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
387 B
TypeScript
21 lines
387 B
TypeScript
|
|
|
|
describe('specs', () => {
|
|
beforeEach(() => {
|
|
JasminePromiseMatchers.install
|
|
});
|
|
|
|
afterEach(() => {
|
|
JasminePromiseMatchers.uninstall
|
|
});
|
|
|
|
it('should have correct syntax', (done) => {
|
|
var foo = {};
|
|
var bar = {};
|
|
|
|
expect(foo).toBeResolvedWith(bar, done);
|
|
expect(foo).toBeRejectedWith(bar, done);
|
|
expect(foo).toBeResolved(done);
|
|
expect(foo).toBeRejected(done);
|
|
});
|
|
}) |