fixed karma
This commit is contained in:
parent
029f7e6cd8
commit
6bec91bfc9
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue