File: test/node/test.js

Recommend this page to a friend!
  Classes of Emil Kilhage  >  class.js  >  test/node/test.js  >  Download  
File: test/node/test.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: class.js
Create classes with Node.js, jQuery and JavaScript
Author: By
Last change: Update of test/node/test.js
Date: 1 month ago
Size: 545 bytes
 

Contents

Class file image Download
/*jslint node: true, strict: false */
var assert = require('assert');

global.Class = require("../../node.class.js");

global.ok = function () {
    assert.ok.apply(assert, arguments);
};

global.currentModule = "";

global.test = function (name, test) {
    console.log(global.currentModule + ": " + name);
    test();
};

global.equal = global.equals = function () {
    assert.equal.apply(assert, arguments);
};

global.deepEqual = global.deepEquals = function () {
//    assert.deepEqual.apply(assert, arguments);
};

require("../test.js");