11 lines
333 B
JavaScript
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);
|
|
});
|
|
});
|