未验证 提交 bdbcf58a 编写于 作者: P Phil Hughes

fixed Karam test because of event name change

上级 c3dec96e
......@@ -95,7 +95,7 @@ describe('RepoFile', () => {
describe('methods', () => {
describe('linkClicked', () => {
it('$emits linkclicked with file obj', () => {
it('$emits fileNameClicked with file obj', () => {
spyOn(eventHub, '$emit');
const vm = createComponent({
......@@ -104,7 +104,7 @@ describe('RepoFile', () => {
vm.linkClicked(vm.file);
expect(eventHub.$emit).toHaveBeenCalledWith('linkclicked', vm.file);
expect(eventHub.$emit).toHaveBeenCalledWith('fileNameClicked', vm.file);
});
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册