Commit 698e4bb7 authored by Donald Cook's avatar Donald Cook

Removed unneeded param and better tests

parent 3b7ea6b6
...@@ -107,11 +107,7 @@ export default { ...@@ -107,11 +107,7 @@ export default {
<span v-html="actionTextHtml"></span> <span v-html="actionTextHtml"></span>
<template v-if="canSeeDescriptionVersion" slot="extra-controls"> <template v-if="canSeeDescriptionVersion" slot="extra-controls">
&middot; &middot;
<button <button type="button" class="btn-blank btn-link" @click="toggleDescriptionVersion">
type="button"
class="btn-blank btn-link"
@click="toggleDescriptionVersion(note.description_version_id)"
>
{{ __('Compare with previous version') }} {{ __('Compare with previous version') }}
<icon :name="descriptionVersionToggleIcon" :size="12" class="append-left-5" /> <icon :name="descriptionVersionToggleIcon" :size="12" class="append-left-5" />
</button> </button>
......
...@@ -588,7 +588,7 @@ describe('Notes Store mutations', () => { ...@@ -588,7 +588,7 @@ describe('Notes Store mutations', () => {
it('adds a descriptionVersion', () => { it('adds a descriptionVersion', () => {
mutations.RECEIVE_DESCRIPTION_VERSION(state, { descriptionVersion, versionId }); mutations.RECEIVE_DESCRIPTION_VERSION(state, { descriptionVersion, versionId });
expect(state.descriptionVersions[versionId]).toContain(descriptionVersion); expect(state.descriptionVersions[versionId]).toBe(descriptionVersion);
}); });
}); });
...@@ -600,7 +600,7 @@ describe('Notes Store mutations', () => { ...@@ -600,7 +600,7 @@ describe('Notes Store mutations', () => {
it('updates descriptionVersion to "Deleted"', () => { it('updates descriptionVersion to "Deleted"', () => {
mutations.RECEIVE_DELETE_DESCRIPTION_VERSION(state, { [versionId]: deleted }); mutations.RECEIVE_DELETE_DESCRIPTION_VERSION(state, { [versionId]: deleted });
expect(state.descriptionVersions[versionId]).toContain(deleted); expect(state.descriptionVersions[versionId]).toBe(deleted);
}); });
}); });
}); });
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