diff --git a/modules/route/front/main/index.spec.js b/modules/route/front/main/index.spec.js index b6df9fd738..e5724b4933 100644 --- a/modules/route/front/main/index.spec.js +++ b/modules/route/front/main/index.spec.js @@ -38,20 +38,12 @@ describe('Route Component vnRoute', () => { expect(params.scopeDays).toEqual(1); }); - it('should return a number value in scope days', () => { + it('should return the given scope days', () => { let params = controller.fetchParams({ scopeDays: 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' - }); - - expect(params.scopeDays).toBe('ScopeDayNoNumber'); - }); }); }); diff --git a/modules/travel/front/main/index.spec.js b/modules/travel/front/main/index.spec.js index 01b27c234a..6d9db4dc84 100644 --- a/modules/travel/front/main/index.spec.js +++ b/modules/travel/front/main/index.spec.js @@ -38,20 +38,12 @@ describe('Travel Component vnTravel', () => { expect(params.scopeDays).toEqual(1); }); - it('should return a number value in scope days', () => { + it('should return the given scope days', () => { let params = controller.fetchParams({ scopeDays: 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' - }); - - expect(params.scopeDays).toBe('ScopeDayNoNumber'); - }); }); });