{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/801","repository_url":"https://api.github.com/repos/mgechev/angular2-seed","labels_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/801/comments","events_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/801/events","html_url":"https://github.com/mgechev/angular2-seed/issues/801","id":151867172,"number":801,"title":"Unit-tests not finding dependency","user":{"login":"EmanuelEriksson","id":3728272,"avatar_url":"https://avatars.githubusercontent.com/u/3728272?v=3","gravatar_id":"","url":"https://api.github.com/users/EmanuelEriksson","html_url":"https://github.com/EmanuelEriksson","followers_url":"https://api.github.com/users/EmanuelEriksson/followers","following_url":"https://api.github.com/users/EmanuelEriksson/following{/other_user}","gists_url":"https://api.github.com/users/EmanuelEriksson/gists{/gist_id}","starred_url":"https://api.github.com/users/EmanuelEriksson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmanuelEriksson/subscriptions","organizations_url":"https://api.github.com/users/EmanuelEriksson/orgs","repos_url":"https://api.github.com/users/EmanuelEriksson/repos","events_url":"https://api.github.com/users/EmanuelEriksson/events{/privacy}","received_events_url":"https://api.github.com/users/EmanuelEriksson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-29T13:37:15Z","updated_at":"2016-05-04T14:21:54Z","closed_at":"2016-05-04T14:21:54Z","body":"We've just added ng2-dragula to our project, so I'm not sure if this should be asked here or there.\r\n\r\nNg2-dragula works in both dev and production builds, but not when running tests.\r\n\r\nWhen we're running with 'npm test' after including ng2-dragula. We're getting the following error:\r\n\r\n```\r\n25 04 2016 15:33:18.841:WARN [web-server]: 404: /base/ng2-dragula/ng2-dragula.js\r\nChrome 50.0.2661 (Mac OS X 10.11.3) ERROR: Error{originalErr: Error{}}\r\n25 04 2016 15:33:18.942:WARN [web-server]: 404: /base/ng2-dragula/ng2-dragula.js\r\nERROR: Error{stack: null, originalErr: Error{}, line: 821, sourceURL: 'http://localhost:9876/base/node_modules/systemjs/dist/system.src.js?e1a1843273d23ee5028aa25121066ce32fecdb29'}\r\n```\r\n\r\nand some of our tests are no longer being executed.\r\n\r\nTo reproduce start with a fresh checkout of this seed install dragula and ng2-dragula from npm\r\n\r\nadd \"'dragula': `node_modules/dragula/dist/dragula.min.js`\" to SYSTEM_BUILDER_CONFIG.paths\r\nadd \"'dragula': `${this.APP_BASE}node_modules/dragula/dist/dragula`\" to SYSTEM_CONFIG_DEV.paths\r\n\r\nadd \"{ src: 'dragula/dist/dragula.min.js', inject: 'libs' },{ src: 'dragula/dist/dragula.min.css', inject: true }\" to additional_deps \r\n\r\nand include DragulaService in any component. When you run 'npm test' you get the same error and only 3 of the 4 tests are run, the tests for the component is not executed and doesn't show up in the list of tests.\r\n\r\nusing dragula 3.6.8 and ng2-dragula 1.1.6\r\n\r\nIs there something i'm missing?"},"comment":{"url":"https://api.github.com/repos/mgechev/angular2-seed/issues/comments/216880337","html_url":"https://github.com/mgechev/angular2-seed/issues/801#issuecomment-216880337","issue_url":"https://api.github.com/repos/mgechev/angular2-seed/issues/801","id":216880337,"user":{"login":"EmanuelEriksson","id":3728272,"avatar_url":"https://avatars.githubusercontent.com/u/3728272?v=3","gravatar_id":"","url":"https://api.github.com/users/EmanuelEriksson","html_url":"https://github.com/EmanuelEriksson","followers_url":"https://api.github.com/users/EmanuelEriksson/followers","following_url":"https://api.github.com/users/EmanuelEriksson/following{/other_user}","gists_url":"https://api.github.com/users/EmanuelEriksson/gists{/gist_id}","starred_url":"https://api.github.com/users/EmanuelEriksson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmanuelEriksson/subscriptions","organizations_url":"https://api.github.com/users/EmanuelEriksson/orgs","repos_url":"https://api.github.com/users/EmanuelEriksson/repos","events_url":"https://api.github.com/users/EmanuelEriksson/events{/privacy}","received_events_url":"https://api.github.com/users/EmanuelEriksson/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T14:21:54Z","updated_at":"2016-05-04T14:21:54Z","body":"@Neil-Ni Brilliant, thank you, that fixed the problem."}}