forked from enviPath/enviPy
Current Dev State
This commit is contained in:
20
static/js/ketcher2/node_modules/exposify/test/lodash-noconflict.js
generated
vendored
Normal file
20
static/js/ketcher2/node_modules/exposify/test/lodash-noconflict.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/*jshint asi: true */
|
||||
|
||||
var test = require('tap').test
|
||||
, run = require('./util/run')
|
||||
, show = require('./util/show')
|
||||
|
||||
var lodash = { lo: 'and behold' }
|
||||
|
||||
test('\nproviding lodash: _.noConflict() and exposifying src with one lodash require', function (t) {
|
||||
var file = 'lodash-noconflict.js';
|
||||
var map = { 'lodash': '_.noConflict()' };
|
||||
var window = { _: { noConflict: function nodConflict() { return lodash } } };
|
||||
|
||||
run(map, file, window, function (err, main) {
|
||||
if (err) { t.fail(err); return t.end(); }
|
||||
t.equal(main(), 'and behold', 'exposes _.noConflict() as lodash');
|
||||
|
||||
t.end();
|
||||
});
|
||||
})
|
||||
Reference in New Issue
Block a user