From f2e5fdddf10897758fe92d84fb29ea201c25b1f8 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Mon, 19 Feb 2018 19:38:20 +0100 Subject: [PATCH] tests: fix client unit tests --- test/client/unit/specs/libs/i18n.js | 2 +- test/client/unit/specs/mixins/groupsUtilities.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/client/unit/specs/libs/i18n.js b/test/client/unit/specs/libs/i18n.js index 0137fefe0d..8a23a89b63 100644 --- a/test/client/unit/specs/libs/i18n.js +++ b/test/client/unit/specs/libs/i18n.js @@ -14,7 +14,7 @@ describe('i18n plugin', () => { }); it('adds $t to Vue.prototype', () => { - expect(Vue.prototype.$t).to.be.a.function; + expect(Vue.prototype.$t).to.exist; }); it('$t is a proxy for common/i18n.t', () => { diff --git a/test/client/unit/specs/mixins/groupsUtilities.js b/test/client/unit/specs/mixins/groupsUtilities.js index 2f9f17d012..cdfe6e5ea4 100644 --- a/test/client/unit/specs/mixins/groupsUtilities.js +++ b/test/client/unit/specs/mixins/groupsUtilities.js @@ -23,7 +23,7 @@ describe('Groups Utilities Mixin', () => { describe('isMemberOfGroup', () => { it('registers as a method', () => { - expect(instance.isMemberOfGroup).to.be.a.function; + expect(instance.isMemberOfGroup).to.exist; }); it('returns true when the group is the Tavern', () => {