driver: properly bind to Cypress for counting pending tests

This commit is contained in:
Brian Mann
2017-08-23 19:06:27 -04:00
parent 37c3fd95d7
commit c9b20d454e
@@ -1,14 +1,11 @@
pending = []
Cypress.on "test:after:run", (test) ->
if test.state is "pending"
pending.push(test)
describe "src/cypress/runner", ->
context "pending tests", ->
pending = []
beforeEach ->
cy.on "test:after:run", (test) ->
if test.state is "pending"
pending.push(test)
return null
it "is not pending", ->
it "is pending 1"