Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test that parses our multi-format fixture #22

Merged
merged 18 commits into from
Nov 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
one test per bookmark from the fixture
michielbdejong committed Nov 23, 2023
commit 1bafe2be1413908a46cc815e12f931aa605c0b12
9 changes: 6 additions & 3 deletions bookmarks/vanilla/test/unit/Bookmark.test.ts
Original file line number Diff line number Diff line change
@@ -156,12 +156,12 @@ describe("Bookmark", () => {

expect(res).toEqual(expected);
});
it("should parse bookmarks in several formats", async () => {
it("should parse bookmarks in format one", async () => {
const typeIndexUrl = "https://fake-pod.net/bookmarks/index.ttl";
const url = 'https://fake-pod.net/bookmarks/index.ttl#d2d50f70-8eb0-40b6-9996-88c4a430a16d';
const url = 'https://fake-pod.net/bookmarks/index.ttl#one';

const expected = {
url: 'https://fake-pod.net/bookmarks/index.ttl#d2d50f70-8eb0-40b69996-88c4a430a16d',
url: 'https://fake-pod.net/bookmarks/index.ttl#one',
title: 'updated',
link: 'http://goo.com'
}
@@ -187,4 +187,7 @@ describe("Bookmark", () => {
expect(res).toEqual(expected);

});
it("should parse bookmarks in format two", async () => {
// etc
});
});