From bf1b1126157b7e75af6adb11d4599f6b52cc18a7 Mon Sep 17 00:00:00 2001 From: hrsh7th <629908+hrsh7th@users.noreply.github.com> Date: Sat, 15 Oct 2022 15:11:07 +0900 Subject: [PATCH] Remove ansiblels test --- lua/cmp/entry_spec.lua | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/lua/cmp/entry_spec.lua b/lua/cmp/entry_spec.lua index d01125c..a22648f 100644 --- a/lua/cmp/entry_spec.lua +++ b/lua/cmp/entry_spec.lua @@ -290,41 +290,6 @@ describe('entry', function() assert.are.equal(e:get_vim_item(e:get_offset()).word, 'string') end) - it('[ansiblels] 1', function() - local item = { - detail = 'ansible.builtin', - filterText = 'blockinfile ansible.builtin.blockinfile', - kind = 7, - label = 'blockinfile', - sortText = '2_blockinfile', - textEdit = { - newText = '', - range = { - ['end'] = { - character = 7, - line = 15, - }, - start = { - character = 6, - line = 15, - }, - }, - }, - } - local s = source.new('dummy', { - resolve = function(_, _, callback) - item.textEdit.newText = 'modified' - callback(item) - end, - }) - local e = entry.new(spec.state('', 1, 1).manual(), s, item) - assert.are.equal(e:get_vim_item(e:get_offset()).word, 'blockinfile') - async.sync(function(done) - e:resolve(done) - end, 100) - assert.are.equal(e:get_vim_item(e:get_offset()).word, 'blockinfile') - end) - it('[#47] word should not contain \\n character', function() local state = spec.state('', 1, 1)