Skip to content

Commit

Permalink
remove jest-each test dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed Mar 13, 2024
1 parent cb58922 commit 29277cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"file-loader": "^6.2.0",
"jest": "^29.5.0",
"jest-each": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-styled-components": "^7.1.1",
"jsdom": "^21.1.1",
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/common/processing.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import each from "jest-each";

import {
Card,
Cardback,
Expand Down Expand Up @@ -351,14 +349,14 @@ test("a line specifying the selected image ID for both faces is processed correc
});

describe("URLs are sanitised correctly", () => {
each([
test.each([
"http://127.0.0.1:8000",
"http://127.0.0.1:8000/",
"https://127.0.0.1:8000",
"127.0.0.1:8000",
"127.0.0.1:8000/",
"127.0.0.1:8000/path",
]).test("%s", (text) => {
])("%s", (text) => {
expect(standardiseURL(text)).toBe(
"http" + (text.includes("http://") ? "" : "s") + "://127.0.0.1:8000"
);
Expand Down

0 comments on commit 29277cc

Please sign in to comment.