const app = require('../../../../../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' })); }); });