From: Bjørn Erik Pedersen Date: Sun, 19 Nov 2017 13:35:49 +0000 (+0100) Subject: source: Enable disabled test X-Git-Tag: v0.31~7 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=adbd5bc47fb48cbf6afa3198aec405500452ee65;p=brevno-suite%2Fhugo source: Enable disabled test --- diff --git a/source/dirs_test.go b/source/dirs_test.go index 0d8eacf5..f4650669 100644 --- a/source/dirs_test.go +++ b/source/dirs_test.go @@ -75,6 +75,14 @@ func TestStaticDirs(t *testing.T) { return l1 }, []string{"s1", "l1s1", "l1s2"}}, + {func(cfg config.Provider, fs *hugofs.Fs) config.Provider { + cfg.Set("staticDir", []string{"s1", "s2"}) + + l1 := helpers.NewLanguage("en", cfg) + l1.Set("staticDir2", []string{"l1s1", "l1s2"}) + return l1 + + }, []string{"s1", "s2", "l1s1", "l1s2"}}, {func(cfg config.Provider, fs *hugofs.Fs) config.Provider { cfg.Set("staticDir", "s1") @@ -91,9 +99,6 @@ func TestStaticDirs(t *testing.T) { } for i, test := range tests { - if i != 0 { - break - } msg := fmt.Sprintf("Test %d", i) v := viper.New() fs := hugofs.NewMem(v)