mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
43 lines
1.9 KiB
Lua
43 lines
1.9 KiB
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local Screen = require('test.functional.ui.screen')
|
|
local clear, command = helpers.clear, helpers.command
|
|
local feed, alter_slashes = helpers.feed, helpers.alter_slashes
|
|
local insert = helpers.insert
|
|
|
|
describe('nvim-treesitter', function()
|
|
local screen
|
|
|
|
before_each(function()
|
|
clear()
|
|
screen = Screen.new(81, 15)
|
|
screen:attach()
|
|
end)
|
|
|
|
after_each(function()
|
|
screen:detach()
|
|
end)
|
|
|
|
it('basically works', function()
|
|
insert("This is a line")
|
|
|
|
screen:expect([[
|
|
This is a lin^e |
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
{2:~ }|
|
|
|
|
|
]], {[2] = {bold = true, foreground = Screen.colors.Blue1}})
|
|
|
|
end)
|
|
|
|
end)
|