jvandemo / generator-angularjs-library

A generator for Yeoman to generate the boilerplate for creating an AngularJS library
117 stars 33 forks source link

Method Inject in test cause error #39

Open Bedotech opened 7 years ago

Bedotech commented 7 years ago

If i scaffolding a new project and add a inject function li this:

  it('should exist', function() {
    console.log(inject());
    //expect(Validator).to.be.ok;
  });

and the type gulp, the tests fails with this error:

    Error: [$injector:modulerr] Failed to instantiate module ng due to:
TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')

Is related to this?

jvandemo commented 7 years ago

@Bedotech — Were you able to resolve this yet? Thanks!