From 97490b272f2fd169c95186e0d7e8cee733554ff1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 29 Nov 2013 20:54:18 -0600 Subject: [PATCH] Add more unit tests to increase coverage. --- test/index.html | 11 ++- test/test.js | 231 ++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 202 insertions(+), 40 deletions(-) diff --git a/test/index.html b/test/index.html index 2321655ba..319855464 100644 --- a/test/index.html +++ b/test/index.html @@ -22,6 +22,9 @@ Array._isArray = Array.isArray; Array.isArray = function() { return false; }; + Date._now = Date.now; + Date.now = function() {}; + Function.prototype._bind = Function.prototype.bind; Function.prototype.bind = function() { return function() {}; }; @@ -34,7 +37,7 @@ Object._keys = Object.keys; Object.keys = function() { return []; }; - // load Lo-Dash and expose it to the bad `Object.keys` shim + // load Lo-Dash and expose it to the bad shims document.write('