Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Apr 21, 2024
1 parent bf389db commit a3ca0f8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/init_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ describe("is_test_file", function()

async.it("matches test files with default test patterns", function()
stub(require("neotest.lib").files, "match_root_pattern", function()
return function(path)
return path
end
return function(path)
return path
end
end)

stub(require("neotest.lib").files, "read", function()
return [[
return [[
{
"name": "spec",
"version": "1.0.0",
Expand All @@ -66,7 +66,10 @@ describe("is_test_file", function()

for _, extension1 in ipairs(intermediate_extensions) do
for _, extension2 in ipairs(extensions) do
local stripped_path, _ = ("./spec/basic." .. extension1 .. "." .. extension2):gsub("%%%-", "%-")
local stripped_path, _ = ("./spec/basic." .. extension1 .. "." .. extension2):gsub(
"%%%-",
"%-"
)

assert.True(plugin.is_test_file(stripped_path))
end
Expand Down

0 comments on commit a3ca0f8

Please sign in to comment.