Tarea #528 /methods/item/getSummary.js Backend unit tests
This commit is contained in:
parent
fc95597a96
commit
46eb1e6f98
|
@ -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();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue