Fixed test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-07-16 12:09:50 +02:00
parent cbb2ad7f44
commit a07d960a2e
1 changed files with 0 additions and 4 deletions

View File

@ -51,12 +51,8 @@ describe('Worker', () => {
describe('worker() setter', () => { describe('worker() setter', () => {
it(`should perform a get query and set the reponse data on the model`, () => { it(`should perform a get query and set the reponse data on the model`, () => {
jest.spyOn(controller, 'getIsSubordinate').mockReturnValue(true); jest.spyOn(controller, 'getIsSubordinate').mockReturnValue(true);
jest.spyOn(controller, 'refresh').mockReturnValue(new Promise(resolve => {
return resolve();
}));
let today = new Date(); let today = new Date();
let tomorrow = new Date(today.getTime()); let tomorrow = new Date(today.getTime());
tomorrow.setDate(tomorrow.getDate() + 1); tomorrow.setDate(tomorrow.getDate() + 1);