From 49370524759d9b2124d0281e6340bbf617532f62 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 21 Jun 2014 23:55:53 -0700 Subject: [PATCH] Minor test cleanup. --- test/test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 7fdefc80a..1bbc9c546 100644 --- a/test/test.js +++ b/test/test.js @@ -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(); } });