14 lines
402 B
JavaScript
14 lines
402 B
JavaScript
const app = require(`${servicesDir}/client/server/server`);
|
|
|
|
describe('Client card', () => {
|
|
it('should call the card() method to receive a formated card of Bruce Wayne', async() => {
|
|
let id = 101;
|
|
let result = await app.models.Client.card(id);
|
|
|
|
expect(result).toEqual(jasmine.objectContaining({
|
|
id: 101,
|
|
name: 'Bruce Wayne'
|
|
}));
|
|
});
|
|
});
|