-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdepOutputChannel.test.ts
32 lines (25 loc) · 947 Bytes
/
depOutputChannel.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import * as chai from 'chai';
import * as sinon from 'sinon';
import * as sinonChai from 'sinon-chai';
import { DepOutputChannel } from '../src/DepOutputChannel';
const expect = chai.expect;
chai.use(sinonChai);
suite('DepOutputChannel module', () => {
let sandbox: sinon.SinonSandbox;
setup(() => {
sandbox = sinon.createSandbox();
});
teardown(() => {
sandbox.restore();
});
test('getOutputChannel should return OutputChannel with Dependency Analytics', () => {
const depOutputChannel = new DepOutputChannel();
let outputChannel = depOutputChannel.getOutputChannel();
expect(outputChannel.name).equals('Dependency Analytics');
});
test('getOutputChannel should return OutputChannel with custom name', () => {
const depOutputChannel = new DepOutputChannel('test channel');
let outputChannel = depOutputChannel.getOutputChannel();
expect(outputChannel.name).equals('test channel');
});
});