Skip to content

Commit

Permalink
Fix the check adding (i.e. everything))
Browse files Browse the repository at this point in the history
 🐿 v2.6.0
  • Loading branch information
adgad committed Feb 14, 2018
1 parent 78beaac commit 433ce77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/smoke/test-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit 433ce77

Please sign in to comment.