Commit bdbcf58a authored by Phil Hughes's avatar Phil Hughes

fixed Karam test because of event name change

parent c3dec96e
...@@ -95,7 +95,7 @@ describe('RepoFile', () => { ...@@ -95,7 +95,7 @@ describe('RepoFile', () => {
describe('methods', () => { describe('methods', () => {
describe('linkClicked', () => { describe('linkClicked', () => {
it('$emits linkclicked with file obj', () => { it('$emits fileNameClicked with file obj', () => {
spyOn(eventHub, '$emit'); spyOn(eventHub, '$emit');
const vm = createComponent({ const vm = createComponent({
...@@ -104,7 +104,7 @@ describe('RepoFile', () => { ...@@ -104,7 +104,7 @@ describe('RepoFile', () => {
vm.linkClicked(vm.file); vm.linkClicked(vm.file);
expect(eventHub.$emit).toHaveBeenCalledWith('linkclicked', vm.file); expect(eventHub.$emit).toHaveBeenCalledWith('fileNameClicked', vm.file);
}); });
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment