salix/modules/item/back/methods/item-barcode/specs/toItem.spec.js

11 lines
333 B
JavaScript
Raw Normal View History

2019-02-22 07:32:18 +00:00
const app = require('vn-loopback/server/server');
describe('item-barcode toItem()', () => {
it('should return the same number if there is a barcode and a item with the same ID', async() => {
let barcode = 3;
let result = await app.models.ItemBarcode.toItem(barcode);
expect(result).toBe(3);
});
});