【发布时间】:2017-04-23 20:28:42
【问题描述】:
我有一个 Angular2 组件的单元测试规范文件。
此规范文件导入文件/组件,如
import { DeviceProtocolModifiedLabelComponent } from
'../../../../../src/app/device/deviceProtocol/deviceProtocolList/deviceProtocolWidget/deviceProtocolModifiedLabel/device-protocol-modified-label.component';
import { DeviceProtocolTagsComponent } from
'../../../../../src/app/device/deviceProtocol/deviceProtocolList/deviceProtocolWidget/deviceProtocolTags/device-protocol-tags.component';
但上面的行在一行中跨越了 140 个字符,并在控制台上给出了以下错误。
test/specs/app/device/deviceProtocol/device-protocol.component.spec.ts[25, 1]: Exceeds maximum line length of 140
我经历了this 的问题,但没有帮助。我不想更改配置
【问题讨论】:
-
你见过the flags吗?顺便说一句,在此路径的某个级别重新导出
index.ts是有意义的。