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

Removed unneeded param and better tests

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