diff --git a/node_modules/c9/git_test.js b/node_modules/c9/git_test.js index 690eb76e..fae73a2b 100644 --- a/node_modules/c9/git_test.js +++ b/node_modules/c9/git_test.js @@ -58,7 +58,7 @@ module.exports = { }, "test get head revision sync": function(next) { - var rev = git.getHeadRevisionSync(__dirname + "/../"); + var rev = git.getHeadRevisionSync(__dirname + "/../../"); assert.equal(rev.length, 40); next(); @@ -70,6 +70,6 @@ module.exports = { next(); }); } -} +}; !module.parent && require("asyncjs").test.testcase(module.exports).exec(); diff --git a/node_modules/c9/passcrypt_test.js b/node_modules/c9/passcrypt_test.js index d1dabfbc..d373e9d8 100644 --- a/node_modules/c9/passcrypt_test.js +++ b/node_modules/c9/passcrypt_test.js @@ -1,30 +1,14 @@ /*global describe it before after beforeEach afterEach define*/ "use strict"; -"use client"; "use server"; "use mocha"; -// Test flags -// -// "use root"; the unit test will be executed as root (using sudo); use with care! (ex. back-up / restore tests) -// "use non-osx"; test will be skipped if the operating system is Mac OS -// "use server"; tests are supposed to run on server-side (either with node or mocha) -// "use client"; tests are run by means of Selenium on client side -// "use mocha"; tests can be run by mocha or by node; this label indicates needs be run using mocha. +require("c9/inline-mocha")(module); -if (typeof define === "undefined") { - require("c9/inline-mocha")(module); - require("amd-loader"); - require("../../test/setup_paths"); -} - -define(function(require, exports, module) { - -var assert = require("ace/test/assertions"); +var assert = require("assert"); var passcrypt = require('./passcrypt'); var bcrypt = require('bcrypt'); - describe("c9/passcrypt", function(){ this.timeout(2000); @@ -78,6 +62,4 @@ describe("c9/passcrypt", function(){ }); }); -if (typeof onload !== "undefined") - onload(); -}); +if (typeof onload !== "undefined") onload();