Skip to content

Commit

Permalink
Merge pull request mozilla#17657 from Snuffleupagus/eslint-jasmine-no…
Browse files Browse the repository at this point in the history
…-dupes

Prevent duplicate names in unit/integration tests
  • Loading branch information
timvandermeij authored Feb 11, 2024
2 parents 422e46d + 5732fae commit 4b7382e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"jasmine/new-line-between-declarations": "off",
"jasmine/no-focused-tests": "error",
"jasmine/no-pending-tests": "off",
"jasmine/no-spec-dupes": "off",
"jasmine/no-suite-dupes": "off",
"jasmine/no-spec-dupes": ["error", "branch"],
"jasmine/no-suite-dupes": ["error", "branch"],
"jasmine/prefer-jasmine-matcher": "off",
"jasmine/prefer-toHaveBeenCalledWith": "off"
}
Expand Down
3 changes: 2 additions & 1 deletion test/integration/find_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ describe("find bar", () => {
);
});
});
describe("highlight all", () => {

describe("highlight all (XFA)", () => {
let pages;

beforeAll(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/scripting_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ describe("Scripting", function () {
});
});

it("should format a date", async () => {
it("should format a date (cFormat)", async () => {
const refId = getId();
const data = {
objects: {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/xfa_parser_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ describe("XFAParser", function () {
).toBe("SW1");
});

it("should make basic binding with extra subform", function () {
it("should make basic binding with extra subform (consumeData)", function () {
const xml = `
<?xml version="1.0"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
Expand Down

0 comments on commit 4b7382e

Please sign in to comment.