Skip to content

Commit

Permalink
Expect with match to avoid hardcoding a line number in the expected e…
Browse files Browse the repository at this point in the history
…rror message
  • Loading branch information
zovits committed Aug 22, 2023
1 parent 844d8db commit 203aeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Store.spec.lua
Expand Up @@ -58,7 +58,7 @@ return function()
end)

expect(success).to.equal(false)
expect(err).to.equal("Bad argument #5 to Store.new, expected nil or Devtools object.")
expect(string.match(err, "Bad argument #5 to Store.new, expected nil or Devtools object.")).to.be.ok()
end)

it("should call devtools:_hookIntoStore", function()
Expand Down

0 comments on commit 203aeb1

Please sign in to comment.