Files
meteor/packages/modules/modules-tests.js
Ben Newman f727bb3c56 New package implementing the runtime API for a CommonJS module system.
When used, the 'modules' package provides a CommonJS require/exports
module system via the exported meteorInstall function. Once that
underlying system is available, ECMAScript 2015 import/export syntax can
be easily compiled into require/exports.
2015-12-09 14:29:53 -05:00

7 lines
218 B
JavaScript

Tinytest.add('modules', function (test) {
test.equal(typeof meteorInstall, "function");
var require = meteorInstall();
test.equal(typeof require, "function");
test.equal(typeof require.ensure, "function");
});