mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
@@ -82,7 +82,6 @@ func TestNewContentFromFile(t *testing.T) {
|
||||
cfg, fs := newTestCfg(c, mm)
|
||||
h, err := hugolib.NewHugoSites(deps.DepsCfg{Cfg: cfg, Fs: fs})
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
||||
err = create.NewContent(h, cas.kind, cas.path)
|
||||
|
||||
if b, ok := cas.expected.(bool); ok && !b {
|
||||
@@ -98,6 +97,7 @@ func TestNewContentFromFile(t *testing.T) {
|
||||
if !strings.HasPrefix(fname, "content") {
|
||||
fname = filepath.Join("content", fname)
|
||||
}
|
||||
|
||||
content := readFileFromFs(c, fs.Source, fname)
|
||||
|
||||
for _, v := range cas.expected.([]string) {
|
||||
|
Reference in New Issue
Block a user