mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
tests/neovim: fix expected config
Use normalized store paths to not have to maintain the hash Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
vim.cmd [[source /nix/store/szdyh45rf0rgiq35zgy5b3z99f8lx8f2-nvim-init-home-manager.vim]]
|
||||
vim.cmd [[source /nix/store/00000000000000000000000000000000-nvim-init-home-manager.vim]]
|
||||
function HM_PLUGIN_LUA_CONFIG ()
|
||||
end
|
||||
|
||||
@@ -43,6 +43,6 @@ lib.mkIf config.test.enableBig {
|
||||
assertFileContains "$vimout" "HM_PLUGINS_CONFIG"
|
||||
|
||||
initLua="$TESTED/home-files/.config/nvim/init.lua"
|
||||
assertFileContent "$initLua" ${./plugin-config.expected}
|
||||
assertFileContent $(normalizeStorePaths "$initLua") ${./plugin-config.expected}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user