Commit d3e4fa9f authored by Alexander Turinske's avatar Alexander Turinske

Clean up code

- remove unnecessary comments
parent 0d2a5230
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
v-for="(label, field) in $options.statuses" v-for="(label, field) in $options.statuses"
:key="field" :key="field"
:active="field === status" :active="field === status"
:active-class="'is-active'" active-class="'is-active'"
@click="updateAlertStatus(field)" @click="updateAlertStatus(field)"
> >
{{ label }} {{ label }}
......
...@@ -39,10 +39,8 @@ describe('AlertStatus', () => { ...@@ -39,10 +39,8 @@ describe('AlertStatus', () => {
}); });
afterEach(() => { afterEach(() => {
if (wrapper) { wrapper.destroy();
wrapper.destroy(); wrapper = null;
wrapper = null;
}
}); });
describe('a successful request', () => { describe('a successful request', () => {
...@@ -100,7 +98,6 @@ describe('AlertStatus', () => { ...@@ -100,7 +98,6 @@ describe('AlertStatus', () => {
await selectFirstStatusOption(); await selectFirstStatusOption();
await wrapper.vm.$nextTick(); await wrapper.vm.$nextTick();
await selectFirstStatusOption(); await selectFirstStatusOption();
// Should emit two errors [0,1]
expect(wrapper.emitted('alert-error').length > 1).toBe(true); expect(wrapper.emitted('alert-error').length > 1).toBe(true);
}); });
......
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