Commit 219b58ab authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Cover linkClicked in repo_file

parent d0bcf017
......@@ -119,4 +119,18 @@ describe('RepoFile', () => {
expect(vm.linkClicked).toHaveBeenCalledWith(file);
});
describe('methods', () => {
describe('linkClicked', () => {
const vm = jasmine.createSpyObj('vm', ['$emit']);
it('$emits linkclicked with file obj', () => {
const theFile = {};
repoFile.methods.linkClicked.call(vm, theFile);
expect(vm.$emit).toHaveBeenCalledWith('linkclicked', theFile);
});
});
});
});
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