mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
source: Enable disabled test
This commit is contained in:
parent
c1d325934e
commit
adbd5bc47f
1 changed files with 8 additions and 3 deletions
|
@ -75,6 +75,14 @@ func TestStaticDirs(t *testing.T) {
|
||||||
return l1
|
return l1
|
||||||
|
|
||||||
}, []string{"s1", "l1s1", "l1s2"}},
|
}, []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 {
|
{func(cfg config.Provider, fs *hugofs.Fs) config.Provider {
|
||||||
cfg.Set("staticDir", "s1")
|
cfg.Set("staticDir", "s1")
|
||||||
|
|
||||||
|
@ -91,9 +99,6 @@ func TestStaticDirs(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
if i != 0 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
msg := fmt.Sprintf("Test %d", i)
|
msg := fmt.Sprintf("Test %d", i)
|
||||||
v := viper.New()
|
v := viper.New()
|
||||||
fs := hugofs.NewMem(v)
|
fs := hugofs.NewMem(v)
|
||||||
|
|
Loading…
Reference in a new issue