test fixed
This commit is contained in:
parent
8cd6e1411e
commit
1aa780a501
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue