Commit 6bec91bf authored by Phil Hughes's avatar Phil Hughes

fixed karma

parent 029f7e6c
......@@ -8,7 +8,9 @@ export default {
if (active && !state.entries[path].pending) {
Object.assign(state, {
openFiles: state.openFiles.map(f => Object.assign(f, { active: !(f.pending && f.active) })),
openFiles: state.openFiles.map(f =>
Object.assign(f, { active: f.pending ? false : f.active }),
),
});
}
},
......
......@@ -27,6 +27,7 @@ describe('Multi-file store file mutations', () => {
localState.openFiles.push({
...localFile,
pending: true,
active: true,
});
mutations.SET_FILE_ACTIVE(localState, {
......
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