我正在为茉莉花中的
angularjs编写测试用例,并使用业力作为测试运行员.以前,一切都运行良好,但突然发生[RangeError:错误的长度!].我甚至不知道如何调试它发生的地方.请帮忙..
> Executed 81 of 85 SUCCESS (0 secs / 1.835 secs) 28 12 2015 > 17:07:32.063:ERROR [karma]: [RangeError: Wrong length!] RangeError: > Wrong length! > at RangeError (native) > at strictToLength (/home/knoldus/roobricks-datashape-ui/node_modules/core-js/modules/_typed-array.js:94:36) > at /home/knoldus/roobricks-datashape-ui/node_modules/core-js/modules/_typed-array.js:404:44 > at new Uint8Array (/home/knoldus/roobricks-datashape-ui/node_modules/core-js/modules/es6.typed.uint8-array.js:3:12) > at allocate (buffer.js:98:17) > at new Buffer (buffer.js:49:12) > at BufferPool.reset (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/BufferPool.js:57:26) > at Receiver.endPacket (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:247:68) > at Receiver.opcodes.1.finish (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:483:12) > at Receiver.expectHandler (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:451:33) > at Receiver.add (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/Receiver.js:95:24) > at Socket.realHandler (/home/knoldus/roobricks-datashape-ui/node_modules/ws/lib/WebSocket.js:800:20) > at emitOne (events.js:77:13) > at Socket.emit (events.js:169:7) > at readableAddChunk (_stream_readable.js:146:16) > at Socket.Readable.push (_stream_readable.js:110:10)
这似乎是最新业力版本中的一个错误(0.13.16).请检查此问题:
https://github.com/karma-runner/karma/issues/1768.
原文链接:https://www.f2er.com/angularjs/142275.html如果您已更新到karma@0.13.16并且启用了覆盖率报告器,则会遇到此问题.