Skip to content

Testing Components that use ember-debug-logger #5

Description

@rstudner

I have a component, I happily have this.debug("yay!"); inside of it.

When I run the test for the component I see:

        Died on test #1 http://localhost:7357/assets/tests.js:1175:24
        exports@http://localhost:7357/assets/vendor.js:140:37
        requireModule@http://localhost:7357/assets/vendor.js:32:25
        require@http://localhost:7357/assets/test-support.js:7124:14
        loadModules@http://localhost:7357/assets/test-support.js:7116:21
        load@http://localhost:7357/assets/test-support.js:7146:33
        http://localhost:7357/assets/test-support.js:7030:22: undefined is not a constructor (evaluating 'this.debug("yay!")')
    Log: |
...

any simple recommended way to get around this?

(i've tried the simple this.set('debug', etc); to no avail)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions