2021-04-15 08:44:25 +00:00
|
|
|
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);
|
|
|
|
|
2021-04-15 08:50:10 +00:00
|
|
|
expect(summary.supplierRef).toEqual('1234');
|
2021-06-29 08:33:01 +00:00
|
|
|
expect(summary.totals).toEqual('1234');
|
2021-04-15 08:44:25 +00:00
|
|
|
});
|
|
|
|
});
|