mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 17:42:37 +00:00
functests: Refactor legacy/018_unset_smart_indenting_spec
This commit is contained in:
@@ -1,11 +1,15 @@
|
|||||||
-- Tests for not doing smart indenting when it isn't set.
|
-- Tests for not doing smart indenting when it isn't set.
|
||||||
|
|
||||||
local helpers = require('test.functional.helpers')(after_each)
|
local helpers = require('test.functional.helpers')(after_each)
|
||||||
local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
|
|
||||||
local execute, expect = helpers.execute, helpers.expect
|
local feed = helpers.feed
|
||||||
|
local clear = helpers.clear
|
||||||
|
local insert = helpers.insert
|
||||||
|
local expect = helpers.expect
|
||||||
|
local feed_command = helpers.feed_command
|
||||||
|
|
||||||
describe('unset smart indenting', function()
|
describe('unset smart indenting', function()
|
||||||
setup(clear)
|
before_each(clear)
|
||||||
|
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
insert([[
|
insert([[
|
||||||
@@ -15,8 +19,8 @@ describe('unset smart indenting', function()
|
|||||||
test text
|
test text
|
||||||
test text]])
|
test text]])
|
||||||
|
|
||||||
execute('set nocin nosi ai')
|
feed_command('set nocin nosi ai')
|
||||||
execute('/some')
|
feed_command('/some')
|
||||||
feed('2cc#test<Esc>')
|
feed('2cc#test<Esc>')
|
||||||
|
|
||||||
expect([[
|
expect([[
|
||||||
|
|||||||
Reference in New Issue
Block a user