Skip to content

Commit 48ea34f

Browse files
committed
Create another folder for running unit tests that expect a multiple entries result
1 parent 5c2a98d commit 48ea34f

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

mod_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ Deno.test("if 'select * from .' works", async () => {
99

1010
Deno.test("if 'select * from root' works", async () => {
1111
const result = await fsselect("select * from root");
12-
assert(result.length === 3);
12+
assert(result.length === 4);
1313
});
1414

1515
Deno.test("if 'select * from root/test_folder_with_file' works", async () => {
1616
const result = await fsselect("select * from root/test_folder_with_file");
17-
assert(result.length === 2);
17+
assert(result.length === 1);
1818
});
1919

20-
Deno.test("if 'select * from root/test_folder_with_file where size > 1000000' works", async () => {
21-
const result = await fsselect("select * from root/test_folder_with_file where size > 1000000");
20+
Deno.test("if 'select * from root/test_folder_with_files where size > 1000000' works", async () => {
21+
const result = await fsselect("select * from root/test_folder_with_files where size > 1000000");
2222
assert(result.length === 1);
2323
assert(result[0].name === 'b-file-1MB.txt');
2424
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Some content
File renamed without changes.

select_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Deno.test("if an existing file entry is returned when the path is a correct fold
4242

4343
const result = await select(query);
4444

45-
assert(result.length === 2);
45+
assert(result.length === 1);
4646
assertEquals(result[0].name, "a-file.txt");
4747
assertEquals(result[0].size, 12);
4848
assertEquals(result[0].isFile, true);
@@ -77,7 +77,7 @@ Deno.test("if a 1MB file is returned when the where clause is correct", async ()
7777
const query: IQuery = {
7878
type: "select",
7979
fields: ["*"],
80-
from: "root/test_folder_with_file",
80+
from: "root/test_folder_with_files",
8181
where: {
8282
conditions: [
8383
{

0 commit comments

Comments
 (0)