test fixed

This commit is contained in:
Gerard 2018-12-17 14:46:42 +01:00
parent 8cd6e1411e
commit 1aa780a501
2 changed files with 4 additions and 4 deletions

View File

@ -1,12 +1,12 @@
const app = require(`${servicesDir}/client/server/server`);
describe('Client card', () => {
xit('should call the card() method to receive a formated card of Bruce Wayne', async () => {
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(579.1);
expect(result.debt).toEqual(79.1);
});
});

View File

@ -14,10 +14,10 @@ describe('client summary()', () => {
expect(result.mana.mana).toEqual(151.33);
});
xit('should return a summary object containing debt', async () => {
it('should return a summary object containing debt', async () => {
let result = await app.models.Client.summary(101);
expect(result.debt.debt).toEqual(579.1);
expect(result.debt.debt).toEqual(79.1);
});
it('should return a summary object containing averageInvoiced', async () => {