Add RequireJS "shim" test and a build test to ensure the AMD snippet is maintained for r.js.

Former-commit-id: 708c07877cfca0022d6d56c16c36d8bae79e4796
This commit is contained in:
John-David Dalton
2012-09-13 19:11:48 -07:00
parent 827091e522
commit 08249d78ea
3 changed files with 38 additions and 2 deletions

View File

@@ -123,6 +123,14 @@
}
});
test('supports loading lodash.js with the Require.js "shim" configuration option', function() {
if (window.document && window.require) {
equal((shimmedModule || {}).moduleName, 'shimmed');
} else {
skipTest();
}
});
test('supports loading lodash.js as the "underscore" module', function() {
if (window.document && window.require) {
equal((underscoreModule || {}).moduleName, 'underscore');