mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 23:52:39 +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.
|
||||
|
||||
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()
|
||||
setup(clear)
|
||||
before_each(clear)
|
||||
|
||||
it('is working', function()
|
||||
insert([[
|
||||
@@ -15,8 +19,8 @@ describe('unset smart indenting', function()
|
||||
test text
|
||||
test text]])
|
||||
|
||||
execute('set nocin nosi ai')
|
||||
execute('/some')
|
||||
feed_command('set nocin nosi ai')
|
||||
feed_command('/some')
|
||||
feed('2cc#test<Esc>')
|
||||
|
||||
expect([[
|
||||
|
||||
Reference in New Issue
Block a user