values: { surname: "test_surname" },
}).then(mockPatron => {
expect(mockPatron.surname).to.equal("test_surname");
expect(mockPatron.overdues_count).to.be.a("number");
});
},
};
const generateMockData = type => {
if (Array.isArray(type)) {
type = type.filter(t => t != '"null"')[0];
}
switch (type) {
case "string":
return faker.lorem.words(3);
-