Fix vue test stacktraces (#12612)

* Issue 10786 - Add unit test for Home component

* Issue 10786 - Improve test setup and test invite parameter variations

* Issue 10786 - Improve Vue.js test isolation by adding async keyword to dispatch function

* Issue 10786 - Missing action does not need to be awaited

* fix(vuejs-unit-tests): Fewer stacktraces in avatar.spec.js

* No more stacktraces in avatar.spec.js

* Register dummy directive in chatCard.spec.js

* Resolve stacktraces in column.spec.js

* Resolve stacktrace in notifications.spec.js

* Resolve warnings in user.spec.js

* Resolve asynchronous stacktrace from home.spec.js

* Remove unnecessary mount call.

* Clear up some let clutter in column.spec.js
This commit is contained in:
Bart Enkelaar
2020-10-01 19:08:34 +02:00
committed by GitHub
parent 73c5764d63
commit 32ac00b417
7 changed files with 191 additions and 107 deletions
@@ -20,7 +20,7 @@ describe('Notifications', () => {
lvl: 0,
},
flags: {},
preferences: {},
preferences: { suppressModals: {} },
party: {
quest: {
},
@@ -55,6 +55,7 @@ describe('Notifications', () => {
expect(wrapper.vm.userHasClass).to.be.true;
});
describe('user exp notifcation', () => {
it('notifies when user gets more exp', () => {
const expSpy = sinon.spy(wrapper.vm, 'exp');