src/Tools/VSCode/extension/test/extension.test.ts
author wenzelm
Mon Mar 25 17:21:26 2019 +0100 (2 months ago)
changeset 69981 3dced198b9ec
parent 64605 9c1173a7e4cb
permissions -rw-r--r--
more strict AFP properties;
wenzelm@64605
     1
//
wenzelm@64605
     2
// Note: This example test is leveraging the Mocha test framework.
wenzelm@64605
     3
// Please refer to their documentation on https://mochajs.org/ for help.
wenzelm@64605
     4
//
wenzelm@64605
     5
wenzelm@64605
     6
// The module 'assert' provides assertion methods from node
wenzelm@64605
     7
import * as assert from 'assert';
wenzelm@64605
     8
wenzelm@64605
     9
// You can import and use all API from the 'vscode' module
wenzelm@64605
    10
// as well as import your extension to test it
wenzelm@64605
    11
import * as vscode from 'vscode';
wenzelm@64605
    12
import * as myExtension from '../src/extension';
wenzelm@64605
    13
wenzelm@64605
    14
// Defines a Mocha test suite to group tests of similar kind together
wenzelm@64605
    15
suite("Extension Tests", () => {
wenzelm@64605
    16
wenzelm@64605
    17
    // Defines a Mocha unit test
wenzelm@64605
    18
    test("Something 1", () => {
wenzelm@64605
    19
        assert.equal(-1, [1, 2, 3].indexOf(5));
wenzelm@64605
    20
        assert.equal(-1, [1, 2, 3].indexOf(0));
wenzelm@64605
    21
    });
wenzelm@64605
    22
});