Commit 23a7c389 authored by Phil Hughes's avatar Phil Hughes

added spec

parent 16995b8c
...@@ -346,4 +346,23 @@ describe('RepoEditor', () => { ...@@ -346,4 +346,23 @@ describe('RepoEditor', () => {
}); });
}); });
}); });
it('calls removePendingTab when old file is pending', done => {
spyOn(vm, 'removePendingTab');
vm.file.pending = true;
vm
.$nextTick()
.then(() => {
vm.file = file('testing');
return vm.$nextTick();
})
.then(() => {
expect(vm.removePendingTab).toHaveBeenCalled();
})
.then(done)
.catch(done.fail);
});
}); });
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