10 lines
319 B
JavaScript
10 lines
319 B
JavaScript
|
const app = require('vn-loopback/server/server');
|
||
|
|
||
|
describe('invoiceIn summary()', () => {
|
||
|
it('should return a summary object containing data from one invoiceIn', async() => {
|
||
|
const summary = await app.models.InvoiceIn.summary(1);
|
||
|
|
||
|
expect(summary.invoiceIn.supplierRef).toEqual('1234');
|
||
|
});
|
||
|
});
|