Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon committed Nov 28, 2017
1 parent 51cfce1 commit 476a3eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/unit/specs/VueQuillEditor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ describe('vue-quill-editor', () => {

// 多个循环实例
describe('Multi edirot instance', () => {
it(' - should update value after any change text', () => {
it(' - should update value after any change text', done => {
const eventLogs = []
const vm = new Vue({
template: `<div>
Expand Down Expand Up @@ -268,8 +268,11 @@ describe('vue-quill-editor', () => {
expect(vm.$refs.editorb[0].quill.getText()).to.deep.equal('b-test content\n')
expect(vm.$refs.editorc[0].quill.getText()).to.deep.equal('c-test content\n')
vm.contents.b = '<p>b-test change</p>'
expect(vm.$refs.editorb[0].quill.getText()).to.deep.equal('b-test change\n')
expect(vm.$refs.editorb[0].quill instanceof Quill).to.deep.equal(true)
Vue.nextTick(() => {
expect(vm.$refs.editorb[0].quill.getText()).to.deep.equal('b-test change\n')
expect(vm.$refs.editorb[0].quill instanceof Quill).to.deep.equal(true)
done()
})
})
})

Expand Down

0 comments on commit 476a3eb

Please sign in to comment.