You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
I tried running the tests using gulp watch or gulp tdd or karma start, none of tests pass.
I removed all the tests and left with one test which came with the repo, but it crashed as well.
Following are the configs and logs:
$ karma start
27 04 2017 18:05:30.725:INFO [framework.browserify]: registering rebuild (autoWatch=true)
27 04 2017 18:05:33.054:INFO [framework.browserify]: 8225 bytes written (1.48 seconds)
27 04 2017 18:05:33.061:INFO [framework.browserify]: bundle built
27 04 2017 18:05:33.067:WARN [karma]: No captured browser, open http://localhost:9876/
27 04 2017 18:05:33.093:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
27 04 2017 18:05:33.126:INFO [launcher]: Starting browser PhantomJS
27 04 2017 18:05:33.797:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket wXb8g0DVyZcvTW4-AAAA with id 92913389
PhantomJS 2.1.1 (Linux 0.0.0): Executed 0 of 1 SUCCESS (0 secs / 0 secs)
27 04 2017 18:05:36.182:WARN [reporter]: SourceMap position not found for trace: TypeError: undefined is not an object (evaluating 'deps.element.find') in http://localhost:9876/absolute/tmp/340fd0d84888149df6953a873eceeb67.browserify?b0baa919f6f31e6ca234ec7a9fdea8dd84a805f1 (line 10)
PhantomJS 2.1.1 (Linux 0.0.0) Test login-form component Should have email and password inputs FAILED
/home/damjan/myproject/public/js/vendor.js:14509:53
forEach@/home/damjan/myproject/public/js/vendor.js:10141:24
loadModules@/home/damjan/myproject/public/js/vendor.js:14469:12
createInjector@/home/damjan/myproject/public/js/vendor.js:14391:30
WorkFn@/home/damjan/myproject/node_modules/angular-mocks/angular-mocks.js:3120:60
inject@/home/damjan/myproject/node_modules/angular-mocks/angular-mocks.js:3100:46
injectDeps@/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:3483:33
Error: missing $compile {} in /home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js (line 2949)
lazyAss@/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:2949:16
setupElement@/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:3489:11
/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:3534:23
TypeError: undefined is not an object (evaluating 'deps.element.find') in /tmp/340fd0d84888149df6953a873eceeb67.browserify (line 10)
/tmp/340fd0d84888149df6953a873eceeb67.browserify:10:32 <- /home/damjan/myproject/tests/angular/app/components/login-form.component.spec.js:7:32
Error: cannot find injected dependency $rootScope (or alias) $rootScope in {} in /home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js (line 2949)
lazyAss@/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:2949:16
deleteInjectedDependency@/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:3570:13
forEach@[native code]
deleteDependencies@/home/damjan/myproject/node_modules/ng-describe/dist/ng-describe.js:3565:31
PhantomJS 2.1.1 (Linux 0.0.0): Executed 1 of 1 (1 FAILED) ERROR (0.071 secs / 1.732 secs)
The original test, which it's not different than the ./artisans ng:component mycomponent what generates as spec.js file.
ngDescribe({
name: 'Test nav-sidebar component',
modules: 'app',
inject: ['$scope', '$rootScope'], // without this it complains about the $rootScope missing
element: '<nav-sidebar></nav-sidebar>',
tests: function (deps) {
it('Should run the test', () => {
});
}
});
And the expression 'app/components/**/*.js', was getting the spec files before the controllers'.
I fix it by explicitly setting the file name end like this:
I tried running the tests using gulp watch or gulp tdd or karma start, none of tests pass.
I removed all the tests and left with one test which came with the repo, but it crashed as well.
Following are the configs and logs:
The original test, which it's not different than the ./artisans ng:component mycomponent what generates as spec.js file.
I'm using Laravel 5.2 and angular 1.5.x.
package.json
bower.json
Does someone know what I made wrong ?
The text was updated successfully, but these errors were encountered: