Removed bad code
This commit is contained in:
parent
6fed5a21b7
commit
c7424997d5
|
@ -30,12 +30,10 @@ describe('Route Component vnRoute', () => {
|
||||||
expect(params).toEqual(expectedParams);
|
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({
|
let params = controller.fetchParams({
|
||||||
scopeDays: 0
|
scopeDays: 0
|
||||||
});
|
});
|
||||||
if (!params || params.scopeDays == '0')
|
|
||||||
params.scopeDays = 1;
|
|
||||||
|
|
||||||
expect(params.scopeDays).toEqual(1);
|
expect(params.scopeDays).toEqual(1);
|
||||||
});
|
});
|
||||||
|
@ -44,7 +42,6 @@ describe('Route Component vnRoute', () => {
|
||||||
let params = controller.fetchParams({
|
let params = controller.fetchParams({
|
||||||
scopeDays: 2
|
scopeDays: 2
|
||||||
});
|
});
|
||||||
if (typeof params.scopeDays === 'number')
|
|
||||||
|
|
||||||
expect(params.scopeDays).toEqual(2);
|
expect(params.scopeDays).toEqual(2);
|
||||||
});
|
});
|
||||||
|
@ -53,7 +50,6 @@ describe('Route Component vnRoute', () => {
|
||||||
let params = controller.fetchParams({
|
let params = controller.fetchParams({
|
||||||
scopeDays: 'ScopeDayNoNumber'
|
scopeDays: 'ScopeDayNoNumber'
|
||||||
});
|
});
|
||||||
if (typeof params.scopeDays !== 'number')
|
|
||||||
|
|
||||||
expect(params.scopeDays).toBe('ScopeDayNoNumber');
|
expect(params.scopeDays).toBe('ScopeDayNoNumber');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue