Support import completion

This commit is contained in:
hrsh7th
2022-01-18 19:17:51 +09:00
parent 682818b211
commit 8fc8d31cf4
4 changed files with 50 additions and 37 deletions

View File

@@ -9,6 +9,7 @@ describe('utils.str', function()
assert.are.equal(str.get_word('"devDependencies":', string.byte('"')), '"devDependencies')
assert.are.equal(str.get_word('"devDependencies": ${1},', string.byte('"')), '"devDependencies')
assert.are.equal(str.get_word('#[cfg(test)]'), '#[cfg(test)]')
assert.are.equal(str.get_word('import { GetStaticProps$1 } from "next";', nil, 9), 'import { GetStaticProps')
end)
it('strikethrough', function()