Bug 40169: Add a test
Signed-off-by: David Nind <david@davidnind.com>
Amended by: Jonathan Druart
Remove .only
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ea703016d4)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
6fd4a80c32
commit
c0752f2312
|
|
@ -74,4 +74,14 @@ describe("Generate objects", () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
it("should not overwrite _id if passed", () => {
|
||||
const home_library_id = "LIB4TEST";
|
||||
cy.task("buildSampleObject", {
|
||||
object: "item",
|
||||
values: { home_library_id },
|
||||
}).then(mockItem => {
|
||||
expect(mockItem.home_library_id).to.equal(home_library_id);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue