Skip to content

Commit

Permalink
Update tests to reflect newly worded errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane authored Dec 4, 2019
1 parent c1d9803 commit c6423e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ describe "src/cy/commands/connectors", ->
it "throws when function name is missing", (done) ->
cy.on "fail", (err) =>
lastLog = @lastLog
expect(err.message).to.include "cy.invoke() expects the function name to have a value"
expect(err.message).to.include "cy.invoke() expects the functionName argument to have a value"
expect(lastLog.get("error").message).to.include(err.message)
done()

Expand Down Expand Up @@ -1318,7 +1318,7 @@ describe "src/cy/commands/connectors", ->
it "throws when property name is missing", (done) ->
cy.on "fail", (err) =>
lastLog = @lastLog
expect(err.message).to.include "cy.its() expects the property name to have a value"
expect(err.message).to.include "cy.its() expects the propertyName argument to have a value"
expect(lastLog.get("error").message).to.include(err.message)
done()

Expand Down

0 comments on commit c6423e3

Please sign in to comment.