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