Add modern build test.

Former-commit-id: 5f1addf774bd9d128095d477c227c4d8420ead5d
This commit is contained in:
John-David Dalton
2013-04-29 08:54:46 -07:00
parent 76540c20f3
commit 88f9c1e539

View File

@@ -771,6 +771,27 @@
/*--------------------------------------------------------------------------*/
QUnit.module('modern modifier');
(function() {
asyncTest('`lodash modern`', function() {
var start = _.after(2, _.once(QUnit.start));
build(['-s', 'modern'], function(data) {
var basename = path.basename(data.outputPath, '.js'),
context = createContext();
vm.runInContext(data.source, context);
var lodash = context._;
strictEqual(lodash.isPlainObject(Object.create(null)), true, basename);
start();
});
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('source-map modifier');
(function() {