We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 402c6ab commit dd2b9b9Copy full SHA for dd2b9b9
spec/utils_spec.lua
@@ -3,11 +3,11 @@ local utils = require "luacheck.utils"
3
describe("utils", function()
4
describe("read_file", function()
5
it("returns contents of a file", function()
6
- assert.equal("contents\n", utils.read_file("spec/folder/foo"))
+ assert.match("contents\r?\n", utils.read_file("spec/folder/foo"))
7
end)
8
9
it("removes UTF-8 BOM", function()
10
- assert.equal("foo\nbar\n", utils.read_file("spec/folder/bom"))
+ assert.match("foo\r?\nbar\r?\n", utils.read_file("spec/folder/bom"))
11
12
13
it("returns nil for non-existent paths", function()
0 commit comments