0

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?

ediblecode
  • 11,701
  • 19
  • 68
  • 116

1 Answers1

0

When I tested locally the issue was your comment that was not close. If I update to the following it worked fine:

PushNotificationView

function PushNotificationView() {
    return {
        /* Some functions */
    }
}
Matthew Manela
  • 16,572
  • 3
  • 64
  • 66