mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-18 15:01:13 +01:00
tests/neotest: avoid deprecated vim.tbl_flatten
Use plain tables (and vim.iter flatten where needed).
This commit is contained in:
parent
36ce7aacbe
commit
53e19bd5e9
3 changed files with 5 additions and 5 deletions
|
|
@ -18,7 +18,7 @@
|
|||
args = [ "--trace" ];
|
||||
post_process_command.__raw = ''
|
||||
function(cmd)
|
||||
return vim.tbl_flatten({{"env", "FOO=bar"}, cmd})
|
||||
return vim.iter({ { "env", "FOO=bar" }, cmd }):flatten():totable()
|
||||
end
|
||||
'';
|
||||
write_delay = 1000;
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@
|
|||
settings = {
|
||||
test_cmd.__raw = ''
|
||||
function()
|
||||
return vim.tbl_flatten({
|
||||
return {
|
||||
"bundle",
|
||||
"exec",
|
||||
"rails",
|
||||
"test",
|
||||
})
|
||||
}
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@
|
|||
settings = {
|
||||
rspec_cmd.__raw = ''
|
||||
function()
|
||||
return vim.tbl_flatten({
|
||||
return {
|
||||
"bundle",
|
||||
"exec",
|
||||
"rspec",
|
||||
})
|
||||
}
|
||||
end
|
||||
'';
|
||||
root_files = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue