2016-05-26 10 views
-1

ユニットテストのためカルマとジャスミンでionic 2アプリケーションを構築していますが、ユニットテストを実行すると突然このエラーが発生します。ユニットテストをionicで実行しているときにwierdエラーが発生する2

誰かが問題の原因とその問題点を知っていますか?

マルタイン

ERROR: 'Unhandled Promise rejection:', 'null is not an object (evaluating 'link.match')', '; Zone:', '<root>', '; Task:', 'Promise.then', '; Value:', TypeError{stack: '[email protected]://localhost:9876/absolute/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/T/c2e92d78eba2d7ff1999b961b1eb626b.browserify?fa64c4575df6c4e0f466062ff4330eb717508bdc:987:6033 
http://localhost:9876/absolute/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/T/c2e92d78eba2d7ff1999b961b1eb626b.browserify?fa64c4575df6c4e0f466062ff4330eb717508bdc:987:3252 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:323:34 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:216:50 
http://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:571:61 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:356:43 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:256:58 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:474:43 
[email protected]://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2194:32 
http://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2182:27 
[email protected]://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2139:15', line: 987, sourceURL: 'http://localhost:9876/absolute/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/T/c2e92d78eba2d7ff1999b961b1eb626b.browserify?fa64c4575df6c4e0f466062ff4330eb717508bdc'} 
ERROR: Error{line: 538, sourceURL: 'http://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277', stack: '[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:538:76 
http://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:574:32 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:356:43 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:256:58 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:474:43 
[email protected]://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2194:32 
http://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2182:27 
[email protected]://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2139:15', rejection: TypeError{stack: '[email protected]://localhost:9876/absolute/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/T/c2e92d78eba2d7ff1999b961b1eb626b.browserify?fa64c4575df6c4e0f466062ff4330eb717508bdc:987:6033 
http://localhost:9876/absolute/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/T/c2e92d78eba2d7ff1999b961b1eb626b.browserify?fa64c4575df6c4e0f466062ff4330eb717508bdc:987:3252 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:323:34 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:216:50 
http://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:571:61 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:356:43 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:256:58 
[email protected]://localhost:9876/base/node_modules/zone.js/dist/zone.js?8b9c8d0a7e549abe9edec8da5a095f206d206277:474:43 
[email protected]://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2194:32 
http://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2182:27 
[email protected]://localhost:9876/base/node_modules/es6-shim/es6-shim.js?e7f7126a0be128572b15e7524cb57a8a4d58684e:2139:15', line: 987, sourceURL: 'http://localhost:9876/absolute/var/folders/0h/gf8s5_tj7x7f953vj4yhyp5h0000gp/T/c2e92d78eba2d7ff1999b961b1eb626b.browserify?fa64c4575df6c4e0f466062ff4330eb717508bdc'}, promise: ZoneAwarePromise{__zone_symbol__state: 0, __zone_symbol__value: TypeError{stack: ..., line: ..., sourceURL: ...}}, zone: Zone{_properties: Object{}, _parent: null, _name: '<root>', _zoneDelegate: ZoneDelegate{_taskCounts: ..., zone: ..., _parentDelegate: ..., _forkZS: ..., _forkDlgt: ..., _interceptZS: ..., _interceptDlgt: ..., _invokeZS: ..., _invokeDlgt: ..., _handleErrorZS: ..., _handleErrorDlgt: ..., _scheduleTaskZS: ..., _scheduleTaskDlgt: ..., _invokeTaskZS: ..., _invokeTaskDlgt: ..., _cancelTaskZS: ..., _cancelTaskDlgt: ..., _hasTaskZS: ..., _hasTaskDlgt: ...}}, task: ZoneTask{runCount: 1, type: 'microTask', zone: Zone{_properties: ..., _parent: ..., _name: ..., _zoneDelegate: ...}, source: 'Promise.then', data: undefined, scheduleFn: undefined, cancelFn: null, callback: function() { ... }, invoke: function() { ... }}} 

答えて

0

問題は、私は私のユニットテストでのlocalStorageを使用したことです。私はそれを削除し、私の問題を解決しました。

+0

これは受け入れられた回答としてマークする必要があります – seza443

関連する問題