-23
test/extension.test.js
-23
test/extension.test.js
···
1
-
/* global suite, test */
2
-
3
-
//
4
-
// Note: This example test is leveraging the Mocha test framework.
5
-
// Please refer to their documentation on https://mochajs.org/ for help.
6
-
//
7
-
8
-
// The module 'assert' provides assertion methods from node
9
-
const assert = require('assert')
10
-
11
-
// You can import and use all API from the 'vscode' module
12
-
// as well as import your extension to test it
13
-
// const vscode = require('vscode');
14
-
// const myExtension = require('../extension');
15
-
16
-
// Defines a Mocha test suite to group tests of similar kind together
17
-
suite('Extension Tests', function() {
18
-
// Defines a Mocha unit test
19
-
test('Something 1', function() {
20
-
assert.equal(-1, [1, 2, 3].indexOf(5))
21
-
assert.equal(-1, [1, 2, 3].indexOf(0))
22
-
})
23
-
})