Skip to content

Commit

Permalink
tests/lua-loader: builtins.match regex fix
Browse files Browse the repository at this point in the history
Getting invalid regex expression on darwin.
  • Loading branch information
khaneliman committed Aug 16, 2024
1 parent 6ab17b1 commit a37b48a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test-sources/modules/lua-loader.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

assertions = [
{
assertion = builtins.match ".*vim\.loader.*" config.content == null;
assertion = builtins.match ".*vim\\.loader.*" config.content == null;
message = "No luaLoader configuration is expected in init.lua by default.";
}
{
assertion = builtins.match ".*vim\.loader.*" config.files."files_test.lua".content == null;
assertion = builtins.match ".*vim\\.loader.*" config.files."files_test.lua".content == null;
message = "No luaLoader configuration is expected in 'files' submodules.";
}
];
Expand All @@ -27,11 +27,11 @@

assertions = [
{
assertion = builtins.match ".*vim\.loader\.enable\(\).*" config.content != null;
assertion = builtins.match ".*vim\\.loader\\.enable\\(\\).*" config.content != null;
message = "luaLoader is expected to be explicitly enabled.";
}
{
assertion = builtins.match ".*vim\.loader.*" config.files."files_test.lua".content == null;
assertion = builtins.match ".*vim\\.loader.*" config.files."files_test.lua".content == null;
message = "No luaLoader configuration is expected in 'files' submodules.";
}
];
Expand All @@ -47,11 +47,11 @@

assertions = [
{
assertion = builtins.match ".*vim\.loader\.disable\(\).*" config.content != null;
assertion = builtins.match ".*vim\\.loader\\.disable\\(\\).*" config.content != null;
message = "luaLoader is expected to be explicitly disabled.";
}
{
assertion = builtins.match ".*vim\.loader.*" config.files."files_test.lua".content == null;
assertion = builtins.match ".*vim\\.loader.*" config.files."files_test.lua".content == null;
message = "No luaLoader configuration is expected in 'files' submodules.";
}
];
Expand Down

0 comments on commit a37b48a

Please sign in to comment.