@@ -26,7 +26,7 @@ describe("scandir", function()
2626 it (" with cwd" , function ()
2727 local dirs = scan .scan_dir " ."
2828 eq (" table" , type (dirs ))
29- eq (true , contains (dirs , " ./CHANGELOG .md" ))
29+ eq (true , contains (dirs , " ./README .md" ))
3030 eq (true , contains (dirs , " ./LICENSE" ))
3131 eq (true , contains (dirs , " ./lua/plenary/job.lua" ))
3232 eq (false , contains (dirs , " ./asdf/asdf/adsf.lua" ))
@@ -40,7 +40,7 @@ describe("scandir", function()
4040 end ,
4141 })
4242 eq (" table" , type (dirs ))
43- eq (true , contains (dirs , " ./CHANGELOG .md" ))
43+ eq (true , contains (dirs , " ./README .md" ))
4444 eq (true , contains (dirs , " ./LICENSE" ))
4545 eq (true , contains (dirs , " ./lua/plenary/job.lua" ))
4646 eq (false , contains (dirs , " ./asdf/asdf/adsf.lua" ))
@@ -59,7 +59,7 @@ describe("scandir", function()
5959 it (" with hidden files" , function ()
6060 local dirs = scan .scan_dir (" ." , { hidden = true })
6161 eq (" table" , type (dirs ))
62- eq (true , contains (dirs , " ./CHANGELOG .md" ))
62+ eq (true , contains (dirs , " ./README .md" ))
6363 eq (true , contains (dirs , " ./lua/plenary/job.lua" ))
6464 eq (true , contains (dirs , " ./.gitignore" ))
6565 eq (false , contains (dirs , " ./asdf/asdf/adsf.lua" ))
@@ -68,7 +68,7 @@ describe("scandir", function()
6868 it (" with add directories" , function ()
6969 local dirs = scan .scan_dir (" ." , { add_dirs = true })
7070 eq (" table" , type (dirs ))
71- eq (true , contains (dirs , " ./CHANGELOG .md" ))
71+ eq (true , contains (dirs , " ./README .md" ))
7272 eq (true , contains (dirs , " ./lua/plenary/job.lua" ))
7373 eq (true , contains (dirs , " ./lua" ))
7474 eq (true , contains (dirs , " ./tests" ))
@@ -78,7 +78,7 @@ describe("scandir", function()
7878 it (" with only directories" , function ()
7979 local dirs = scan .scan_dir (" ." , { only_dirs = true })
8080 eq (" table" , type (dirs ))
81- eq (false , contains (dirs , " ./CHANGELOG .md" ))
81+ eq (false , contains (dirs , " ./README .md" ))
8282 eq (false , contains (dirs , " ./lua/plenary/job.lua" ))
8383 eq (true , contains (dirs , " ./lua" ))
8484 eq (true , contains (dirs , " ./tests" ))
@@ -88,7 +88,6 @@ describe("scandir", function()
8888 it (" until depth 1 is reached" , function ()
8989 local dirs = scan .scan_dir (" ." , { depth = 1 })
9090 eq (" table" , type (dirs ))
91- eq (true , contains (dirs , " ./CHANGELOG.md" ))
9291 eq (true , contains (dirs , " ./README.md" ))
9392 eq (false , contains (dirs , " ./lua" ))
9493 eq (false , contains (dirs , " ./lua/say.lua" ))
@@ -99,7 +98,6 @@ describe("scandir", function()
9998 it (" until depth 1 is reached and with directories" , function ()
10099 local dirs = scan .scan_dir (" ." , { depth = 1 , add_dirs = true })
101100 eq (" table" , type (dirs ))
102- eq (true , contains (dirs , " ./CHANGELOG.md" ))
103101 eq (true , contains (dirs , " ./README.md" ))
104102 eq (true , contains (dirs , " ./lua" ))
105103 eq (false , contains (dirs , " ./lua/say.lua" ))
@@ -110,7 +108,6 @@ describe("scandir", function()
110108 it (" until depth 2 is reached" , function ()
111109 local dirs = scan .scan_dir (" ." , { depth = 2 })
112110 eq (" table" , type (dirs ))
113- eq (true , contains (dirs , " ./CHANGELOG.md" ))
114111 eq (true , contains (dirs , " ./README.md" ))
115112 eq (true , contains (dirs , " ./lua/say.lua" ))
116113 eq (false , contains (dirs , " ./lua/plenary/job.lua" ))
@@ -122,7 +119,7 @@ describe("scandir", function()
122119 local dirs = scan .scan_dir (" ." , { respect_gitignore = true })
123120 vim .cmd " :silent !rm lua/test.so"
124121 eq (" table" , type (dirs ))
125- eq (true , contains (dirs , " ./CHANGELOG .md" ))
122+ eq (true , contains (dirs , " ./README .md" ))
126123 eq (true , contains (dirs , " ./LICENSE" ))
127124 eq (true , contains (dirs , " ./lua/plenary/job.lua" ))
128125 eq (false , contains (dirs , " ./lua/test.so" ))
@@ -225,7 +222,6 @@ describe("scandir", function()
225222 it (" works for cwd" , function ()
226223 local dirs = scan .ls " ."
227224 eq (" table" , type (dirs ))
228- eq (true , contains_match (dirs , " CHANGELOG.md" ))
229225 eq (true , contains_match (dirs , " LICENSE" ))
230226 eq (true , contains_match (dirs , " README.md" ))
231227 eq (true , contains_match (dirs , " lua" ))
@@ -244,9 +240,8 @@ describe("scandir", function()
244240 it (" works with opts.hidden for cwd" , function ()
245241 local dirs = scan .ls (" ." , { hidden = true })
246242 eq (" table" , type (dirs ))
247- eq (true , contains_match (dirs , " CHANGELOG.md" ))
248- eq (true , contains_match (dirs , " LICENSE" ))
249243 eq (true , contains_match (dirs , " README.md" ))
244+ eq (true , contains_match (dirs , " LICENSE" ))
250245 eq (true , contains_match (dirs , " lua" ))
251246 eq (true , contains_match (dirs , " %.git$" ))
252247 end )
0 commit comments