jvandemo / jvandemo/generator-angularjs-library

Method Inject in test cause error

Open
#39 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
116
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/angular/angular.js/issues/13794)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.