diff --git a/services/loopback/common/methods/item/specs/getSummary.spec.js b/services/loopback/common/methods/item/specs/getSummary.spec.js new file mode 100644 index 000000000..94f50ad1e --- /dev/null +++ b/services/loopback/common/methods/item/specs/getSummary.spec.js @@ -0,0 +1,14 @@ +const app = require(`${servicesDir}/item/server/server`); + +describe('item getSummary()', () => { + it('should return summary with item, tags, botanical, niches, available and visible defined ', async() => { + let result = await app.models.Item.getSummary(1); + + expect(result.item).toBeDefined(); + expect(result.tags).toBeDefined(); + expect(result.botanical).toBeDefined(); + expect(result.niches).toBeDefined(); + expect(result.available).toBeDefined(); + expect(result.visible).toBeDefined(); + }); +});