From 0d94ef1e98c2d72dcb6ad26028650f5b94d0391e Mon Sep 17 00:00:00 2001
From: Domenic Denicola <d@domenic.me>
Date: Mon, 1 Dec 2014 15:50:07 -0500
Subject: [PATCH] Example of using assert.js

---
 .../Array.prototype.find_this-defined.js                  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js b/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js
index 88bf029cde..6d25211d39 100644
--- a/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js
+++ b/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js
@@ -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);
-- 
GitLab