Move roughlyEqual into expect.js

This commit is contained in:
Tom Payne
2013-03-14 23:55:25 +01:00
parent bddaecbe69
commit 62011dab28
3 changed files with 61 additions and 5 deletions

View File

@@ -19,11 +19,6 @@ function waitsFor(condition, message, timeout, callback) {
}
expect.Assertion.prototype.roughlyEqual = function(other, tol) {
return Math.abs(this.actual - other) <= tol;
};
expect.Assertion.prototype.intersectWith = function(other) {
return this.obj.intersects(other);
};