UNPKG

dojo

Version:

Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.

36 lines (31 loc) 804 B
define([ 'intern!object', 'intern/chai!assert', 'require' ], function ( registerSuite, assert, require ) { registerSuite({ name: 'dojo/require', afterEach: function () { window.modA = undefined; window.modB = undefined; window.modC = undefined; }, 'single legacy module': function () { var dfd = this.async(); require(['../../../require!./support/testModA'], dfd.callback(function () { assert.isTrue(window.modA, 'module A should be loaded'); })); }, 'multiple legacy module': function () { var dfd = this.async(); require(['../../../require!./support/testModB,./support/testModC'], dfd.callback(function () { assert.isTrue(window.modB, 'module B should be loaded'); assert.isTrue(window.modC, 'module C should be loaded'); })); } }); });