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

11 lines
333 B
JavaScript

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