mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugofs: Fix filepath issue in test
This commit is contained in:
parent
0013bea901
commit
d970327d7b
1 changed files with 1 additions and 2 deletions
|
@ -50,10 +50,9 @@ func TestLanguagFs(t *testing.T) {
|
||||||
assert.Equal("page.sv.md", lfi.virtualName)
|
assert.Equal("page.sv.md", lfi.virtualName)
|
||||||
assert.Equal("__hugofs_sv_page.md", lfi.Name())
|
assert.Equal("__hugofs_sv_page.md", lfi.Name())
|
||||||
assert.Equal("page.md", lfi.RealName())
|
assert.Equal("page.md", lfi.RealName())
|
||||||
assert.Equal("/my/base", lfi.BaseDir())
|
assert.Equal(filepath.FromSlash("/my/base"), lfi.BaseDir())
|
||||||
assert.Equal("sv", lfi.Lang())
|
assert.Equal("sv", lfi.Lang())
|
||||||
assert.Equal("page", lfi.TranslationBaseName())
|
assert.Equal("page", lfi.TranslationBaseName())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Issue 4559
|
// Issue 4559
|
||||||
|
|
Loading…
Reference in a new issue