From c29e269c2c5f60d10f71f0aef216c125737bd371 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Sun, 6 Aug 2017 22:18:57 -0700 Subject: [PATCH] chore: ignore test-ospec when checking PRs --- dangerfile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dangerfile.js b/dangerfile.js index 89ea4277..bd9cd30b 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -43,6 +43,8 @@ if(appfiles.length && !changelog) { // Call out if `o.only(...)` was left in jsfiles .filter((file) => file.indexOf("tests/") > -1) + // Have to exclude test-ospec.js because it specifically has a purposeful "o.only" in it + .filter((file) => file.indexOf("test-ospec") === -1) .forEach((file) => { var code = fs.readFileSync(file, "utf8"), locs = locater.find("o.only", code);