diff --git a/modules/route/front/main/index.spec.js b/modules/route/front/main/index.spec.js index 51b194117..e22aede8f 100644 --- a/modules/route/front/main/index.spec.js +++ b/modules/route/front/main/index.spec.js @@ -30,12 +30,10 @@ describe('Route Component vnRoute', () => { expect(params).toEqual(expectedParams); }); - it('should return a default value for scope days', () => { + it('should return default value for scope days', () => { let params = controller.fetchParams({ scopeDays: 0 }); - if (!params || params.scopeDays == '0') - params.scopeDays = 1; expect(params.scopeDays).toEqual(1); }); @@ -44,18 +42,16 @@ describe('Route Component vnRoute', () => { let params = controller.fetchParams({ scopeDays: 2 }); - if (typeof params.scopeDays === 'number') - expect(params.scopeDays).toEqual(2); + expect(params.scopeDays).toEqual(2); }); it('should throw an error when scope days is not equal a number', () => { let params = controller.fetchParams({ scopeDays: 'ScopeDayNoNumber' }); - if (typeof params.scopeDays !== 'number') - expect(params.scopeDays).toBe('ScopeDayNoNumber'); + expect(params.scopeDays).toBe('ScopeDayNoNumber'); }); }); });