Skip to content

Problems with Karma testing #27

Open
@sebastianha

Description

@sebastianha

Hi,

I used the nav tree in a project and it works fine, thank you very much for this angularjs extension!

But when I started to implement tests they failed with:

PhantomJS 1.9.7 (Linux) Controller: ChannelsCtrl encountered a declaration exception FAILED
TypeError: '[object Object]' is not a function (evaluating 'module("myApp")')

I figured out to solve the Problem by patching your js file but I don't know how to do this in coffee script so I could not create a pull request. The changes are only in the first couple of lines. I changed:

var module;

module = angular.module('angularBootstrapNavTree', []);

module.directive('abnTree', function($timeout) {

to

angular.module('angularBootstrapNavTree', [])
.directive('abnTree', function($timeout) {

which works for me. Would be nice if you could solve this problem or have you any other idea?

Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions