Skip to content

Testing Components that use ember-debug-logger #5

@rstudner

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions