Skip to content
Snippets Groups Projects
Commit 0d94ef1e authored by Domenic Denicola's avatar Domenic Denicola
Browse files

Example of using assert.js

parent 4bb8c027
No related branches found
No related tags found
No related merge requests found
......@@ -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment