Angularjs Angular Jasmine 2.0测试熟悉度,Pending()无法在body和it中重新识别(';错误,没有函数';);

Angularjs Angular Jasmine 2.0测试熟悉度,Pending()无法在body和it中重新识别(';错误,没有函数';);,angularjs,jasmine,karma-jasmine,Angularjs,Jasmine,Karma Jasmine,转到Jasmine 2.x,我正在测试待定的规范。我尝试在规范体中使用pending()时失败,我发现它(‘没有函数’)抛出了一个 错误:未定义不是函数 xit运作良好 当所有规范都标记为xit()时,我不会对挂起的规范计数 0 tests, 0 assertions, 0 failures 代码 错误消息 失败:它(“可以用'it'声明,但没有函数”) 失败:挂起() 注释掉不好的规范 挂起()似乎无法阻止 执行的最后一个规范,我得到一个 引用错误:未定义挂起 Pendin

转到Jasmine 2.x,我正在测试待定的规范。我尝试在规范体中使用pending()时失败,我发现它(‘没有函数’)抛出了一个

错误:未定义不是函数

xit运作良好

当所有规范都标记为xit()时,我不会对挂起的规范计数

    0 tests, 0 assertions, 0 failures
代码

错误消息 失败:它(“可以用'it'声明,但没有函数”)

失败:挂起()

注释掉不好的规范

挂起()似乎无法阻止 执行的最后一个规范,我得到一个 引用错误:未定义挂起

     Pending specs can be declared by calling 'pending' in the spec body
       Message:
         ReferenceError: pending is not defined
       Stacktrace:
         ReferenceError: pending is not defined
      1) Pending specs encountered a declaration exception
       Message:
         Error: undefined is not a function
       Stacktrace:
         Error: undefined is not a function
     Pending specs can be declared by calling 'pending' in the spec body
       Message:
         ReferenceError: pending is not defined
       Stacktrace:
         ReferenceError: pending is not defined