Commit 62e3b28c authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Cover repo_tabs xClicked method

parent 126d4775
......@@ -65,7 +65,7 @@ describe('RepoTab', () => {
expect(vm.$el.querySelector('.close .fa-circle')).toBeTruthy();
});
fdescribe('methods', () => {
describe('methods', () => {
describe('xClicked', () => {
const vm = jasmine.createSpyObj('vm', ['$emit']);
......
......@@ -47,4 +47,18 @@ describe('RepoTabs', () => {
expect(vm.$el.classList.contains('overflown')).toBeFalsy();
});
fdescribe('methods', () => {
describe('xClicked', () => {
it('calls removeFromOpenedFiles with file obj', () => {
const file = {};
spyOn(RepoStore, 'removeFromOpenedFiles');
repoTabs.methods.xClicked(file);
expect(RepoStore.removeFromOpenedFiles).toHaveBeenCalledWith(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