У нас была производственная система, работающая на Angular JS 1.6.3. Я пытаюсь перейти на Angular JS 1.7.8. Все испытания кармы, которые были там успешными, сейчас ломаются. Пожалуйста, порекомендуйте?.
- обновлены следующие элементы
из package.json "angular": "1.7.8", "angular-cookies": "1.7.8", "angular-mocks ":" 1.7.8 "," angular-resource ":" 1.7.8 "," angular-route ":" 1.7.8 "," angular-sanitize ":" 1.7.8 ",
следовал инструкциям для пропуска html.
препроцессоры: {'src / main / webapp / resources / ** / *. Html': ['ng-html2js'],},
ngHtml2JsPreprocessor: {
// strip this from the file path
stripPrefix: 'src/main/webapp/',
prependPrefix: '/',
// unit test must include beforeEach(module("portalApp.templates"));
moduleName: 'portalApp.templates'
},
Цитата
✖ should activate the student if inactive
HeadlessChrome 78.0.3904 (Mac OS X 10.12.6)
Error: Unexpected request: GET resources/js/Modules/home/home.html
No more request expected
at createFatalError (node_modules/angular-mocks/angular-mocks.js:1569:19)
at $httpBackend (node_modules/angular-mocks/angular-
mocks.js:1616:11)
at sendReq (node_modules/angular/angular.js:13288:9)
at serverRequest (node_modules/angular/angular.js:13029:16)
at processQueue (node_modules/angular/angular.js:17945:37)
at node_modules/angular/angular.js:17993:27
at Scope.$digest (node_modules/angular/angular.js:19112:15)
at Scope.$apply (node_modules/angular/angular.js:19500:24)
at UserContext.<anonymous> `(src/test/js/Modules/students/editStudent/edit-student.controller-spec.js:526:19)`