Fix invalid temporary text
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
local config = require('cmp.config')
|
||||
local async = require('cmp.utils.async')
|
||||
local spec = require('cmp.utils.spec')
|
||||
|
||||
local source = require('cmp.source')
|
||||
@@ -85,10 +86,15 @@ describe('source', function()
|
||||
})
|
||||
end,
|
||||
})
|
||||
vim.wait(100, function() return s.status == source.SourceStatus.COMPLETED end, 100, false)
|
||||
assert.is.truthy(s:complete(state.input('s'), function() end))
|
||||
vim.wait(100, function() return s.status == source.SourceStatus.COMPLETED end, 100, false)
|
||||
assert.is.truthy(s:complete(state.input('p'), function() end))
|
||||
vim.wait(100, function() return s.status == source.SourceStatus.COMPLETED end, 100, false)
|
||||
assert.is.truthy(s:complete(state.input('e'), function() end))
|
||||
vim.wait(100, function() return s.status == source.SourceStatus.COMPLETED end, 100, false)
|
||||
assert.is.truthy(s:complete(state.input('c'), function() end))
|
||||
vim.wait(100, function() return s.status == source.SourceStatus.COMPLETED end, 100, false)
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user