13 lines
407 B
JavaScript
13 lines
407 B
JavaScript
const app = require('vn-loopback/server/server');
|
|
|
|
describe('Client get', () => {
|
|
it('should call the card() method to receive a formated card of Bruce Wayne', async() => {
|
|
let id = 101;
|
|
let result = await app.models.Client.getCard(id);
|
|
|
|
expect(result.id).toEqual(101);
|
|
expect(result.name).toEqual('Bruce Wayne');
|
|
expect(result.debt).toEqual(329.26);
|
|
});
|
|
});
|