Angular js从1.6.3升级到1.7.8后测试失败

时间:2019-11-01 03:30:09

标签: angularjs

我们有一个在Angular js 1.6.3中运行的生产系统。我正在尝试升级到Angular js 1.7.8。那里所有成功进行的业力测试现在都在打破。请指教?。

  1. 升级了以下物品
  2. 来自package.json的
  3. “ angular”:“ 1.7.8”, “ angular-cookies”:“ 1.7.8”, “角mo”:“ 1.7.8”, “角资源”:“ 1.7.8”, “ angular-route”:“ 1.7.8”, “ angular-sanitize”:“ 1.7.8”,

  4. 按照说明跳过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'
        },
     

Blockquote

 ✖ 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)`

0 个答案:

没有答案