mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
parent
3117e58595
commit
30c2e54c25
13 changed files with 307 additions and 264 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue