mirror of
https://github.com/neovim/neovim.git
synced 2026-04-25 00:35:36 +00:00
test: improve test conventions
Work on https://github.com/neovim/neovim/issues/27004.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
local helpers = require('test.functional.helpers')(after_each)
|
||||
local clear = helpers.clear
|
||||
local exec_lua = helpers.exec_lua
|
||||
local eq = helpers.eq
|
||||
local is_os = helpers.is_os
|
||||
local skip = helpers.skip
|
||||
local write_file = require('test.helpers').write_file
|
||||
local t = require('test.functional.testutil')(after_each)
|
||||
local clear = t.clear
|
||||
local exec_lua = t.exec_lua
|
||||
local eq = t.eq
|
||||
local is_os = t.is_os
|
||||
local skip = t.skip
|
||||
local write_file = t.write_file
|
||||
|
||||
describe('URI methods', function()
|
||||
before_each(function()
|
||||
@@ -206,7 +206,7 @@ describe('URI methods', function()
|
||||
it('Windows paths should not be treated as uris', function()
|
||||
skip(not is_os('win'), 'Not applicable on non-Windows')
|
||||
|
||||
local file = helpers.tmpname()
|
||||
local file = t.tmpname()
|
||||
write_file(file, 'Test content')
|
||||
local test_case = string.format(
|
||||
[[
|
||||
|
||||
Reference in New Issue
Block a user