mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
19 lines
498 B
TypeScript
19 lines
498 B
TypeScript
import * as assert from 'assert';
|
|
import { before } from 'mocha';
|
|
|
|
// You can import and use all API from the 'vscode' module
|
|
// as well as import your extension to test it
|
|
import * as vscode from 'vscode';
|
|
// import * as myExtension from '../extension';
|
|
|
|
suite('Extension Test Suite', () => {
|
|
before(() => {
|
|
vscode.window.showInformationMessage('Start all tests.');
|
|
});
|
|
|
|
test('Sample test', () => {
|
|
assert.equal(-1, [1, 2, 3].indexOf(5));
|
|
assert.equal(-1, [1, 2, 3].indexOf(0));
|
|
});
|
|
});
|