Skip to content

Commit 6295fcd

Browse files
committed
Update *.test.ts files so they compile again
1 parent 24620ef commit 6295fcd

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

libraries/decorators/src/test/sealed.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { sealed } from '../sealed';
1+
/// <reference types="mocha" />
22

3-
const assert: Chai.AssertStatic = chai.assert;
3+
import { assert } from 'chai';
4+
import { sealed } from '../sealed';
45

56
describe('@sealed tests', () => {
67
it('Inheriting from a @sealed class', () => {

libraries/decorators/src/test/virtual.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
/// <reference types="mocha" />
2+
3+
import { assert } from 'chai';
14
import { virtual } from '../virtual';
25
import { override } from '../override';
36

4-
const assert: Chai.AssertStatic = chai.assert;
5-
67
describe('@virtual tests', () => {
78
describe('Main scenario', () => {
89
it('valid usage', () => {

libraries/stream-collator/src/next/test/DualTaskStream.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import * as chai from 'chai';
1+
/// <reference types="mocha" />
2+
3+
import { assert } from 'chai';
24
import * as colors from 'colors';
35

46
import DualTaskStream from '../DualTaskStream';
57

6-
const assert: Chai.AssertStatic = chai.assert;
7-
88
const helloWorld: string = 'Hello, world!';
99

1010
describe('DualTaskStream', () => {

libraries/stream-collator/src/next/test/PersistentStream.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import * as chai from 'chai';
1+
/// <reference types="mocha" />
22

3+
import { assert } from 'chai';
34
import PersistentStream from '../PersistentStream';
45

5-
const assert: Chai.AssertStatic = chai.assert;
6-
76
describe('PersistentStream', () => {
87
it('passes through unmodified values', (done: () => void) => {
98
const stream: PersistentStream = new PersistentStream();

libraries/stream-collator/src/next/test/StreamModerator.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import * as chai from 'chai';
1+
/// <reference types="mocha" />
22

3+
import { assert } from 'chai';
34
import StreamCollator from '../StreamCollator';
45
import PersistentStream from '../PersistentStream';
56

6-
const assert: Chai.AssertStatic = chai.assert;
7-
87
let collator: StreamCollator<NodeJS.ReadableStream>;
98
let stdout: PersistentStream, taskA: PersistentStream, taskB: PersistentStream;
109

libraries/stream-collator/src/test/Interleaver.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import * as chai from 'chai';
1+
/// <reference types="mocha" />
2+
3+
import { assert } from 'chai';
24
import * as colors from 'colors';
35
import * as os from 'os';
46

57
import Interleaver, { ITaskWriter } from '../Interleaver';
68

7-
const assert: Chai.AssertStatic = chai.assert;
8-
99
class StringStream {
1010
private _buffer: string[] = [];
1111

0 commit comments

Comments
 (0)