aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs/components/emoji_input.spec.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-09-23 20:29:01 +0300
committerHenry Jameson <me@hjkos.com>2019-09-23 20:36:49 +0300
commit7b4cb387345c0e278a6cfe5bbff5265c09281567 (patch)
treea8b2b6e052aeb687757ef54e5c2c7bce9bec1722 /test/unit/specs/components/emoji_input.spec.js
parent3cd23ae2d4d28c79890442bf343a55e44544bcdf (diff)
split spam mode into two separate options (one in settings page)
Diffstat (limited to 'test/unit/specs/components/emoji_input.spec.js')
-rw-r--r--test/unit/specs/components/emoji_input.spec.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/specs/components/emoji_input.spec.js b/test/unit/specs/components/emoji_input.spec.js
index 5f24331a..13a59961 100644
--- a/test/unit/specs/components/emoji_input.spec.js
+++ b/test/unit/specs/components/emoji_input.spec.js
@@ -26,7 +26,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: initialString.length })
- wrapper.vm.insert({ insertion: '(test)', spamMode: false })
+ wrapper.vm.insert({ insertion: '(test)', keepOpen: false })
expect(wrapper.emitted().input[0][0]).to.eql('Testing (test) ')
})
@@ -36,7 +36,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: initialString.length })
- wrapper.vm.insert({ insertion: '(test)', spamMode: false })
+ wrapper.vm.insert({ insertion: '(test)', keepOpen: false })
expect(wrapper.emitted().input[0][0]).to.eql('Testing (test) ')
})
@@ -46,7 +46,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: 0 })
- wrapper.vm.insert({ insertion: '(test)', spamMode: false })
+ wrapper.vm.insert({ insertion: '(test)', keepOpen: false })
expect(wrapper.emitted().input[0][0]).to.eql('(test) Testing')
})
@@ -56,7 +56,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: 6 })
- wrapper.vm.insert({ insertion: ':ebin:', spamMode: false })
+ wrapper.vm.insert({ insertion: ':ebin:', keepOpen: false })
expect(wrapper.emitted().input[0][0]).to.eql('Spurdo :ebin: Sparde')
})
@@ -66,7 +66,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: 7 })
- wrapper.vm.insert({ insertion: ':ebin:', spamMode: false })
+ wrapper.vm.insert({ insertion: ':ebin:', keepOpen: false })
expect(wrapper.emitted().input[0][0]).to.eql('Spurdo :ebin: Sparde')
})
@@ -76,7 +76,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: initialString.length })
- wrapper.vm.insert({ insertion: ':spam:', spamMode: true })
+ wrapper.vm.insert({ insertion: ':spam:', keepOpen: true })
expect(wrapper.emitted().input[0][0]).to.eql('Eat some spam!:spam:')
})
@@ -86,7 +86,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: 0 })
- wrapper.vm.insert({ insertion: '1234', spamMode: false })
+ wrapper.vm.insert({ insertion: '1234', keepOpen: false })
vue.nextTick(() => {
expect(wrapper.vm.caret).to.eql(5)
done()
@@ -99,7 +99,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: initialString.length })
- wrapper.vm.insert({ insertion: '1234', spamMode: false })
+ wrapper.vm.insert({ insertion: '1234', keepOpen: false })
vue.nextTick(() => {
expect(wrapper.vm.caret).to.eql(10)
done()
@@ -112,7 +112,7 @@ describe('EmojiInput', () => {
const input = wrapper.find('input')
input.setValue(initialString)
wrapper.setData({ caret: initialString.length })
- wrapper.vm.insert({ insertion: '1234', spamMode: true })
+ wrapper.vm.insert({ insertion: '1234', keepOpen: true })
vue.nextTick(() => {
expect(wrapper.vm.caret).to.eql(8)
done()