web-apps/vendor/requirejs/tests/commonjs/tests/modules/1.0/test.js

19 lines
418 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
define(["require", "exports", "module", "system"], function(require, exports, module) {
exports.print = function () {
var system = require("system");
var stdio = system.stdio;
stdio.print.apply(stdio, arguments);
};
exports.assert = function (guard, message) {
if (guard) {
console.log('PASS ' + message, 'pass');
} else {
console.error('FAIL ' + message, 'fail');
}
};
});