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); let keys = Object.keys(result); expect(keys).toContain('item'); expect(keys).toContain('tags'); expect(keys).toContain('botanical'); expect(keys).toContain('niches'); expect(keys).toContain('available'); expect(keys).toContain('visible'); }); });