Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Aug 23, 2024
1 parent 91d975c commit c9e4614
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/spec/core/biblio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("W3C — Bibliographic References", () => {
TestRef1: {
title: "Test ref title",
href: "http://test.com",
authors: ["William Shakespeare"],
authors: ["William Shakespeare Jr."],
publisher: "Publishers Inc.",
},
TestRef2: {
Expand Down Expand Up @@ -79,6 +79,11 @@ describe("W3C — Bibliographic References", () => {
expect(ref.textContent.trim()).toBe(
"evercookie - virtually irrevocable persistent cookies. Samy Kamkar. September 2010. URL: https://samy.pl/evercookie/"
);

const refWithPeriodInEnd = doc.querySelector("#bib-testref1 + dd");
expect(refWithPeriodInEnd.textContent.trim()).toBe(

Check failure on line 84 in tests/spec/core/biblio-spec.js

View workflow job for this annotation

GitHub Actions / Karma Unit Tests (ChromeHeadless)

W3C — Bibliographic References displays references correctly Expected 'Test ref title. William Shakespeare Jr.. Publishers Inc. URL: http://test.com' to be 'Test ref title. William Shakespeare Jr. Publishers Inc. URL: http://test.com'.
"Test ref title. William Shakespeare Jr. Publishers Inc. URL: http://test.com"
);
});

it("pings biblio service to see if it's running", () => {
Expand Down

0 comments on commit c9e4614

Please sign in to comment.