mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Add test for _.noConflict.
This commit is contained in:
17
test/test.js
17
test/test.js
@@ -8861,6 +8861,23 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.noConflict');
|
||||
|
||||
(function() {
|
||||
test('should return the `lodash` function', 1, function() {
|
||||
if (!isModularize) {
|
||||
var oldDash = root._;
|
||||
strictEqual(_.noConflict(), _);
|
||||
root._ = oldDash;
|
||||
}
|
||||
else {
|
||||
skipTest();
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.now');
|
||||
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user