mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
hugolib: Remove empty resources/ dir after TestNewSiteDefaultLang
This commit is contained in:
parent
9c1e82085e
commit
4108705934
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ package hugolib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -359,6 +360,7 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) {
|
||||||
|
|
||||||
func TestNewSiteDefaultLang(t *testing.T) {
|
func TestNewSiteDefaultLang(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
defer os.Remove("resources")
|
||||||
s, err := NewSiteDefaultLang()
|
s, err := NewSiteDefaultLang()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, hugofs.Os, s.Fs.Source)
|
require.Equal(t, hugofs.Os, s.Fs.Source)
|
||||||
|
|
Loading…
Reference in a new issue