2018-08-13 11:11:37 +00:00
|
|
|
const app = require(`${servicesDir}/client/server/server`);
|
2018-01-24 12:45:32 +00:00
|
|
|
|
|
|
|
describe('Client card', () => {
|
2018-04-03 16:31:13 +00:00
|
|
|
it('should call the card() method to receive a formated card of Bruce Wayne', async() => {
|
2018-03-08 11:23:51 +00:00
|
|
|
let id = 101;
|
2018-04-03 16:33:00 +00:00
|
|
|
let result = await app.models.Client.card(id);
|
2018-01-24 12:45:32 +00:00
|
|
|
|
2018-04-03 16:31:13 +00:00
|
|
|
expect(result).toEqual(jasmine.objectContaining({
|
|
|
|
id: 101,
|
|
|
|
name: 'Bruce Wayne'
|
|
|
|
}));
|
2018-01-24 12:45:32 +00:00
|
|
|
});
|
|
|
|
});
|