Minor test cleanup.

This commit is contained in:
John-David Dalton
2014-06-21 23:55:53 -07:00
parent 739eb67bec
commit 4937052475

View File

@@ -7150,14 +7150,14 @@
});
test('should not throw more than once', 2, function() {
var pass = true;
var once = _.once(function() {
throw new Error;
});
raises(function() { once(); }, Error);
var pass = true;
try {
once();
} catch(e) {
@@ -9876,8 +9876,10 @@
var nodeList = document.getElementsByTagName('body'),
actual = func(nodeList);
} catch(e) { }
deepEqual(actual, [body]);
} else {
}
else {
skipTest();
}
});