I'm having an issue whereby, if the tests are run with coverage off - the tests run fine, no issues. However, as soon as I turn the coverage on I get the following error:
ReferenceError: Can't find variable: PushNotificationView
Test file
/// <reference path="PushNotificationPresenter.js" />
describe("Push-Notification-Presenter-Tests", function() {
var view = new PushNotificationView();
/* Some tests go here */
});
PushNotificationView
function PushNotificationView() {
return {
/* Some functions */
}
}
Any ideas?