1
0
Fork 0
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:
Austin Horstman 2025-12-16 19:40:20 -06:00 committed by Gaétan Lepage
parent 36ce7aacbe
commit 53e19bd5e9
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -11,12 +11,12 @@
settings = {
test_cmd.__raw = ''
function()
return vim.tbl_flatten({
return {
"bundle",
"exec",
"rails",
"test",
})
}
end
'';
};

View file

@ -11,11 +11,11 @@
settings = {
rspec_cmd.__raw = ''
function()
return vim.tbl_flatten({
return {
"bundle",
"exec",
"rspec",
})
}
end
'';
root_files = [