From e703dea1e86263ee8e5bb19d3b9ac3fd969d57d0 Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 8 Nov 2017 11:45:06 +0100 Subject: [PATCH] Update template_test.go --- templates/template_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/template_test.go b/templates/template_test.go index 7723f8a1..096d395b 100644 --- a/templates/template_test.go +++ b/templates/template_test.go @@ -109,6 +109,11 @@ func walkDirTest(dir string, t *testing.T) { variables.Set("RootFolder", filelist.FileListToFolder(fakeTorrent.FileList, "root")) return variables }, + "filelist.jet.html": func(variables jet.VarMap) jet.VarMap { + variables.Set("Torrent", fakeTorrent.ToJSON()) + variables.Set("RootFolder", filelist.FileListToFolder(fakeTorrent.FileList, "root")) + return variables + }, "settings.jet.html": func(variables jet.VarMap) jet.VarMap { variables.Set("Form", &LanguagesJSONResponse{"test", publicSettings.Languages{*fakeLanguage, *fakeLanguage}}) return variables