Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
test: account diff env
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-0acf4 committed May 28, 2024
1 parent b67e516 commit 47be19a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 83 deletions.
81 changes: 0 additions & 81 deletions rokahon-server/tests/__snapshots__/test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,84 +24,3 @@ snapshot[`Scan directories > Chapters 1`] = `
],
]
`;

snapshot[`Scan directories 1`] = `
[
{
authors: [],
chapters: [
{
pages: [
{
image: {
ext: "png",
id: "RDpcZGV2LWVudlxkZW5vXHJva2Fob25ccm9rYWhvbi1zZXJ2ZXJcdGVzdHNcdGVzdC1kaXJcb25lXGRlcHRoXHRpdGxlMlxjb3Zlci5wbmc",
path: "tests\\\\test-dir\\\\one\\\\depth\\\\title2\\\\cover.png",
},
number: 1,
},
],
path: "tests\\\\test-dir\\\\one\\\\depth\\\\title2",
title: "title2",
},
],
cover: {
ext: "png",
id: "RDpcZGV2LWVudlxkZW5vXHJva2Fob25ccm9rYWhvbi1zZXJ2ZXJcdGVzdHNcdGVzdC1kaXJcb25lXGRlcHRoXHRpdGxlMlxjb3Zlci5wbmc",
path: "tests\\\\test-dir\\\\one\\\\depth\\\\title2\\\\cover.png",
},
path: "tests\\\\test-dir\\\\one\\\\depth",
tags: [],
title: "depth",
},
{
authors: [],
chapters: [
{
pages: [
{
image: {
ext: "png",
id: "RDpcZGV2LWVudlxkZW5vXHJva2Fob25ccm9rYWhvbi1zZXJ2ZXJcdGVzdHNcdGVzdC1kaXJcb25lXHRpdGxlMVxjaGFwdGVyLTFcMS5wbmc",
path: "tests\\\\test-dir\\\\one\\\\title1\\\\chapter-1\\\\1.png",
},
number: 1,
},
],
path: "tests\\\\test-dir\\\\one\\\\title1\\\\chapter-1",
title: "chapter-1",
},
{
pages: [
{
image: {
ext: "png",
id: "RDpcZGV2LWVudlxkZW5vXHJva2Fob25ccm9rYWhvbi1zZXJ2ZXJcdGVzdHNcdGVzdC1kaXJcb25lXHRpdGxlMVxiYmJcMS5wbmc",
path: "tests\\\\test-dir\\\\one\\\\title1\\\\bbb\\\\1.png",
},
number: 1,
},
{
image: {
ext: "png",
id: "RDpcZGV2LWVudlxkZW5vXHJva2Fob25ccm9rYWhvbi1zZXJ2ZXJcdGVzdHNcdGVzdC1kaXJcb25lXHRpdGxlMVxiYmJcMi5wbmc",
path: "tests\\\\test-dir\\\\one\\\\title1\\\\bbb\\\\2.png",
},
number: 2,
},
],
path: "tests\\\\test-dir\\\\one\\\\title1\\\\bbb",
title: "bbb",
},
],
cover: {
ext: "png",
id: "RDpcZGV2LWVudlxkZW5vXHJva2Fob25ccm9rYWhvbi1zZXJ2ZXJcdGVzdHNcdGVzdC1kaXJcb25lXHRpdGxlMVxiYmJcMS5wbmc",
path: "tests\\\\test-dir\\\\one\\\\title1\\\\bbb\\\\1.png",
},
path: "tests\\\\test-dir\\\\one\\\\title1",
tags: [],
title: "title1",
},
]
`;
2 changes: 0 additions & 2 deletions rokahon-server/tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ Deno.test("Scan directories", async (t) => {
]),
);
});

await assertSnapshot(t, books);
});

0 comments on commit 47be19a

Please sign in to comment.