extension.test.js 726 B

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