From d7b13ab09f107d2cbe042acebe6f062febad4098 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 14 Mar 2013 14:49:41 +0100 Subject: [PATCH] Add test for array equality Hilariously, expect.js does not have one. --- test/test-extensions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test-extensions.js b/test/test-extensions.js index abb0ab0ea7..333bce0cb9 100644 --- a/test/test-extensions.js +++ b/test/test-extensions.js @@ -34,6 +34,11 @@ expect.Assertion.prototype.called = function() { }; +expect.Assertion.prototype.equalArray = function(other) { + return goog.array.equals(this.obj, other); +}; + + // helper functions for async testing (function(global) {