mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Minor test cleanup.
This commit is contained in:
@@ -7150,14 +7150,14 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('should not throw more than once', 2, function() {
|
test('should not throw more than once', 2, function() {
|
||||||
|
var pass = true;
|
||||||
|
|
||||||
var once = _.once(function() {
|
var once = _.once(function() {
|
||||||
throw new Error;
|
throw new Error;
|
||||||
});
|
});
|
||||||
|
|
||||||
raises(function() { once(); }, Error);
|
raises(function() { once(); }, Error);
|
||||||
|
|
||||||
var pass = true;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
once();
|
once();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
@@ -9876,8 +9876,10 @@
|
|||||||
var nodeList = document.getElementsByTagName('body'),
|
var nodeList = document.getElementsByTagName('body'),
|
||||||
actual = func(nodeList);
|
actual = func(nodeList);
|
||||||
} catch(e) { }
|
} catch(e) { }
|
||||||
|
|
||||||
deepEqual(actual, [body]);
|
deepEqual(actual, [body]);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
skipTest();
|
skipTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user