Skip to content

Commit

Permalink
fix: error message format in like() assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenstein64 committed Dec 4, 2024
1 parent 94b42d7 commit 3765c84
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions rockspec/bustez-0.1.3-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
rockspec_format = "3.0"
package = "bustez"
version = "0.1.3-1"
source = {
url = "git+https://github.com/goldenstein64/bustez.git",
tag = "v0.1.3",
dir = "bustez",
}
description = {
summary = "TestEZ injected into Busted",
detailed = [[
BustEZ injects Roblox's TestEZ syntax into the Busted library by
registering new assertions and modifiers and introducing an alternative
function to assert.
]],
homepage = "https://github.com/goldenstein64/bustez",
license = "MIT",
issues_url = "https://github.com/goldenstein64/bustez/issues",
}
dependencies = {
"lua >= 5.1",
"luassert ~> 1.9",
"say ~> 1.4",
}
build = {
type = "builtin",
modules = {
["bustez.expect"] = "src/bustez/expect.lua",
["bustez.init"] = "src/bustez/init.lua",
["bustez.register"] = "src/bustez/register.lua",
["luassert.bustez.expect"] = "src/luassert/bustez/expect.lua",
},
}
2 changes: 2 additions & 0 deletions src/luassert/bustez/expect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ do

arg_map = {
same = swapped,
like = swapped,
look_like = swapped,
matches = swapped,
match = swapped,
near = swapped,
Expand Down

0 comments on commit 3765c84

Please sign in to comment.