salix/services/loopback/common/methods/client/specs/card.spec.js

14 lines
412 B
JavaScript
Raw Normal View History

const app = require('../../../../../client/server/server');
2018-01-24 12:45:32 +00:00
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, callback);
2018-01-24 12:45:32 +00:00
expect(result).toEqual(jasmine.objectContaining({
id: 101,
name: 'Bruce Wayne'
}));
2018-01-24 12:45:32 +00:00
});
});