提交 d7bd50c8 编写于 作者: R Rob Franken 提交者: GitHub

Fix the test code to IE11 compatible code (#1388)

上级 82ce9364
...@@ -50,7 +50,7 @@ describe('CreatorInfo directive', () => { ...@@ -50,7 +50,7 @@ describe('CreatorInfo directive', () => {
['PetSet', 'pet-set'], ['PetSet', 'pet-set'],
]); ]);
for (let [kind, directive] of kind2directive) { kind2directive.forEach((directive, kind) => {
it(`should render a ${kind} as a kd-${directive}-card-list`, () => { it(`should render a ${kind} as a kd-${directive}-card-list`, () => {
// given // given
scope.creator = {kind: kind}; scope.creator = {kind: kind};
...@@ -63,5 +63,5 @@ describe('CreatorInfo directive', () => { ...@@ -63,5 +63,5 @@ describe('CreatorInfo directive', () => {
let elem = element.find(`kd-${directive}-card-list`); let elem = element.find(`kd-${directive}-card-list`);
expect(elem.length).toEqual(1); expect(elem.length).toEqual(1);
}); });
} });
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册