mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Add modern build test.
Former-commit-id: 5f1addf774bd9d128095d477c227c4d8420ead5d
This commit is contained in:
@@ -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');
|
QUnit.module('source-map modifier');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user