Commit ec93e17a authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Cover linkClicked in repo_prev_directory

parent 219b58ab
......@@ -26,4 +26,18 @@ describe('RepoPrevDirectory', () => {
expect(vm.linkClicked).toHaveBeenCalledWith(prevUrl);
});
describe('methods', () => {
describe('linkClicked', () => {
const vm = jasmine.createSpyObj('vm', ['$emit']);
it('$emits linkclicked with file obj', () => {
const file = {};
repoPrevDirectory.methods.linkClicked.call(vm, file);
expect(vm.$emit).toHaveBeenCalledWith('linkclicked', 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