Merge pull request #17657 from Snuffleupagus/eslint-jasmine-no-dupes

Prevent duplicate names in unit/integration tests
This commit is contained in:
Tim van der Meij 2024-02-11 12:18:31 +01:00 committed by GitHub
commit 4b7382edcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -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"
}

View File

@ -72,7 +72,8 @@ describe("find bar", () => {
);
});
});
describe("highlight all", () => {
describe("highlight all (XFA)", () => {
let pages;
beforeAll(async () => {

View File

@ -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: {

View File

@ -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/">