Fixed test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
cbb2ad7f44
commit
a07d960a2e
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue