View | Details | Raw Unified | Return to bug 38503
Collapse All | Expand All

(-)a/t/cypress/integration/t/mockData.ts (+1 lines)
Lines 12-17 describe("Generate Random Patron", () => { Link Here
12
            values: { surname: "test_surname" },
12
            values: { surname: "test_surname" },
13
        }).then(mockPatron => {
13
        }).then(mockPatron => {
14
            expect(mockPatron.surname).to.equal("test_surname");
14
            expect(mockPatron.surname).to.equal("test_surname");
15
            expect(mockPatron.overdues_count).to.be.a("number");
15
        });
16
        });
16
    });
17
    });
17
});
18
});
(-)a/t/cypress/plugins/mockData.js (-1 / +3 lines)
Lines 10-15 const objects = { Link Here
10
    },
10
    },
11
};
11
};
12
const generateMockData = type => {
12
const generateMockData = type => {
13
    if (Array.isArray(type)) {
14
        type = type.filter(t => t != '"null"')[0];
15
    }
13
    switch (type) {
16
    switch (type) {
14
        case "string":
17
        case "string":
15
            return faker.lorem.words(3);
18
            return faker.lorem.words(3);
16
- 

Return to bug 38503