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

This commit is contained in:
Joan Sanchez 2020-08-18 14:14:34 +02:00
parent 55b3e962a4
commit a3d3ed4aba
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ describe('Worker', () => {
describe('year() setter', () => { describe('year() setter', () => {
it(`should set the year of the calendar date`, () => { it(`should set the year of the calendar date`, () => {
jest.spyOn(controller, 'refresh').mockReturnValue(new Promise()); jest.spyOn(controller, 'refresh').mockReturnValue(Promise.resolve());
const previousYear = year - 1; const previousYear = year - 1;
controller.year = previousYear; controller.year = previousYear;