These are chat archives for JamieMason/Jasmine-Matchers

30th
May 2018
chandu379
@chandu379
May 30 2018 13:42
hi
iam doing unit test in angular using jasmine
and in my spec.ts file i have a sample function like this
function test(){
console.log('this is a test function');
return ;
            }
now i didnt even call it but in karma test its throwing error like this
Unhandled Promise rejection: done.fail is not a function ; Zone: ProxyZone ; Task: Promise.then ; Value: TypeError: done.fail is not a function
at :9876/_karmawebpack/webpack:/node_modules/zone.js/dist/zone-testing.js:780
at :9876/_karmawebpack/webpack:/node_modules/zone.js/dist/zone-testing.js:835
at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (:9876/_karmawebpack/webpack:/node_modules/zone.js/dist/zone.js:388)
at ProxyZoneSpec.push../node_modules/zone.js/dist/zone-testing.js.ProxyZoneSpec.onInvoke (:9876/_karmawebpack/webpack:/node_modules/zone.js/dist/zone-testing.js:288)
Please help me with this