From 433ce77281a78f8ff33aa7c1124472bf64619717 Mon Sep 17 00:00:00 2001 From: Arjun Gadhia Date: Wed, 14 Feb 2018 16:11:39 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20the=20check=20adding=20(i.e.=20everything?= =?UTF-8?q?))=20=20=F0=9F=90=BF=20v2.6.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/smoke/test-page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/smoke/test-page.js b/lib/smoke/test-page.js index c28f7e0..b73446f 100644 --- a/lib/smoke/test-page.js +++ b/lib/smoke/test-page.js @@ -35,7 +35,8 @@ class TestPage { Object.entries(options).forEach(([name, val]) => { //Assume anything in options we haven't already claimed is an assertion to check - if(typeof this[name] === 'undefined') { + const reserved = ['https', 'headers', 'method', 'body', 'breakpoint']; + if(!reserved.includes(name)) { this.check[name] = val; } });