Tarea #528 /methods/item/getSummary.js Backend unit tests

This commit is contained in:
gerard 2018-08-21 13:31:25 +02:00
parent fc95597a96
commit 46eb1e6f98
1 changed files with 14 additions and 0 deletions

View File

@ -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();
});
});