This commit is contained in:
parent
0c9b4bbe87
commit
a8b9e2c374
|
@ -0,0 +1,15 @@
|
|||
const app = require('vn-loopback/server/server');
|
||||
|
||||
describe('client hasActiveRecovery', () => {
|
||||
it(`should return false if the client doesn't owes`, async() => {
|
||||
let hasActiveRecovery = await app.models.Recovery.hasActiveRecovery(101);
|
||||
|
||||
expect(hasActiveRecovery).toBeFalsy();
|
||||
});
|
||||
|
||||
it('should return true if the client owes', async() => {
|
||||
let hasActiveRecovery = await app.models.Recovery.hasActiveRecovery(102);
|
||||
|
||||
expect(hasActiveRecovery).toBeTruthy();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue