Add test for array equality
Hilariously, expect.js does not have one.
This commit is contained in:
@@ -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
|
// helper functions for async testing
|
||||||
(function(global) {
|
(function(global) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user