-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.test.ts
35 lines (27 loc) · 812 Bytes
/
config.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
33
34
35
import * as chai from 'chai';
import * as sinon from 'sinon';
import * as sinonChai from 'sinon-chai';
import { Config } from '../src/config';
const expect = chai.expect;
chai.use(sinonChai);
suite('Config module', () => {
let sandbox: sinon.SinonSandbox;
setup(() => {
sandbox = sinon.createSandbox();
});
teardown(() => {
sandbox.restore();
});
test('getMavenExecutable should return mvn', () => {
let mavenPath = Config.getMavenExecutable();
expect(mavenPath).equals('mvn');
});
test('getNodeExecutable should return npm', () => {
let npmPath = Config.getNodeExecutable();
expect(npmPath).equals('npm');
});
test('getPypiExecutable should return python', () => {
let python = Config.getPythonExecutable();
expect(python).equals('python');
});
});