diff --git a/tests/test-sources/modules/lua-loader.nix b/tests/test-sources/modules/lua-loader.nix index ed38fe35c1..25a1038e68 100644 --- a/tests/test-sources/modules/lua-loader.nix +++ b/tests/test-sources/modules/lua-loader.nix @@ -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."; } ]; @@ -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."; } ]; @@ -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."; } ];