Сбой тестов после обновления Angular JS с 1.6.3 до 1.7.8 - PullRequest
0 голосов
/ 01 ноября 2019

У нас была производственная система, работающая на Angular JS 1.6.3. Я пытаюсь перейти на Angular JS 1.7.8. Все испытания кармы, которые были там успешными, сейчас ломаются. Пожалуйста, порекомендуйте?.

  1. обновлены следующие элементы
  2. из 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 ",

  3. следовал инструкциям для пропуска 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)`
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...