Skip to content

Commit 11720b4

Browse files
committed
Add tests
1 parent 4c77907 commit 11720b4

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) Dolittle. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
import { describeThis } from '@dolittle/typescript.testing';
5+
import { Subject } from 'rxjs';
6+
import { Cancellation } from '../../index';
7+
8+
describeThis(__filename, () => {
9+
const result = new Cancellation(new Subject()) instanceof Cancellation;
10+
11+
it('should be', () => result.should.be.true);
12+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) Dolittle. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
import { describeThis } from '@dolittle/typescript.testing';
5+
import { Cancellation } from '../../index';
6+
7+
describeThis(__filename, () => {
8+
const result = Cancellation.default instanceof Cancellation;
9+
10+
it('should be', () => result.should.be.true);
11+
});
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) Dolittle. All rights reserved.
2+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
import { describeThis } from '@dolittle/typescript.testing';
5+
import { Cancellation, CancellationSource } from '../../index';
6+
7+
describeThis(__filename, () => {
8+
const result = new CancellationSource().cancellation instanceof Cancellation;
9+
10+
it('should be', () => result.should.be.true);
11+
});

0 commit comments

Comments
 (0)