Modified the getTestTemplate function. The check for test availability wasn't accurate enough. var || 'default' does not cover a lot of episodes. Infact I was getting an Expected () to start arrow function, but got ';' instead of '=>' warning because test was a series of blank spaces so it wasn't undefined so it wasn't been converted in true and the trim would transform it in an empty string. Lately return (); threw the warning.
Coverage remained the same at 97.571% when pulling 9c07c65d9d0719812f9c6dd6f257d9890ec21802 on Miroku87:patch-1 into 704d28987837f38abcd6b2e07ba65928e43f2983 on jsoverson:master.
Modified the getTestTemplate function. The check for
test
availability wasn't accurate enough.var || 'default'
does not cover a lot of episodes. Infact I was getting anExpected () to start arrow function, but got ';' instead of '=>'
warning becausetest
was a series of blank spaces so it wasn't undefined so it wasn't been converted intrue
and the trim would transform it in an empty string. Latelyreturn ();
threw the warning.