Files
enviPy-bayer/static/js/ketcher2/node_modules/exposify/test/lodash-noconflict.js
2025-06-23 20:13:54 +02:00

21 lines
615 B
JavaScript

/*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();
});
})