From 91788255f2286dc2cf10f41ffba0d789fe5aeac0 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 4 Oct 2023 15:30:15 +0530 Subject: [PATCH] test: missing tests for line and telegram --- .../shared/mixins/specs/inboxMixin.spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/javascript/shared/mixins/specs/inboxMixin.spec.js b/app/javascript/shared/mixins/specs/inboxMixin.spec.js index aca02b697..354f36d5c 100644 --- a/app/javascript/shared/mixins/specs/inboxMixin.spec.js +++ b/app/javascript/shared/mixins/specs/inboxMixin.spec.js @@ -53,6 +53,18 @@ describe('inboxMixin', () => { expect(wrapper.vm.isASmsInbox).toBe(true); }); + it('isALineChannel returns true if channel type is Line', () => { + const Component = getComponentConfig('Channel::Line'); + const wrapper = shallowMount(Component); + expect(wrapper.vm.isALineChannel).toBe(true); + }); + + it('isATelegramChannel returns true if channel type is Telegram', () => { + const Component = getComponentConfig('Channel::Telegram'); + const wrapper = shallowMount(Component); + expect(wrapper.vm.isATelegramChannel).toBe(true); + }); + it('isATwilioChannel returns true if channel type is Twilio', () => { const Component = getComponentConfig('Channel::TwilioSms'); const wrapper = shallowMount(Component);