Example of using assert.js

This commit is contained in:
Domenic Denicola 2014-12-01 15:50:07 -05:00
parent 4bb8c027e4
commit 0d94ef1e98
1 changed files with 2 additions and 6 deletions

View File

@ -8,10 +8,6 @@ description: thisArg should be bound to this if provided
var globalThis = this;
[1].find(function () {
if (this !== Array) {
$ERROR('#1: this !== Array');
}
if (this === globalThis) {
$ERROR('#2: this === globalThis. Should be Array');
}
assert.sameValue(this, Array, 'this should equal Array');
assert.notSameValue(this, globalThis, 'this should not equal globalThis');
}, Array);