Skip to content

Karma test and Unexpected request #450

Closed
@kingcody

Description

@kingcody

After making some changes to the generator templates, I was running the tests and received an error from karma:

Error: Unexpected request: GET app/main/main.html
No more request expected

Its from main.controller.spec; after some research (because I knew nothing about karma) I've found that the preprocessors are supposed to expect certain asset requests which seemed to be defined in karma.conf.js

I've looked at a few suggestions from around the web, but seeing as how I haven't made any modifications to the 'main' component or to the server, I'm wondering if its from something less obvious.

If anyone with experience using karma have any ideas, or know more about what i should be looking for, please drop me a line. Any help would be appreciated.

Thanks,
Cody

PS - not sure what, if any, log information might be of help. Just let me know, and thanks again!

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