mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
c507229191
commit
d4b6f9aca3
1 changed files with 3 additions and 3 deletions
|
@ -203,7 +203,7 @@ func doTestPageMenuWithIdentifier(t *testing.T, menuPageSources []source.ByteSou
|
||||||
assert.NotNil(t, me2)
|
assert.NotNil(t, me2)
|
||||||
|
|
||||||
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL)
|
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL)
|
||||||
assert.True(t, strings.Contains(me2.URL, "doc2"), me2.URL)
|
assert.True(t, strings.Contains(me2.URL, "doc2") || strings.Contains(me2.URL, "doc3"), me2.URL)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,8 +241,8 @@ func doTestPageMenuWithDuplicateName(t *testing.T, menuPageSources []source.Byte
|
||||||
assert.NotNil(t, me1)
|
assert.NotNil(t, me1)
|
||||||
assert.NotNil(t, me2)
|
assert.NotNil(t, me2)
|
||||||
|
|
||||||
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL, me1.URL)
|
assert.True(t, strings.Contains(me1.URL, "doc1"), me1.URL)
|
||||||
assert.True(t, strings.Contains(me2.URL, "doc2"), me2.URL, me2.URL)
|
assert.True(t, strings.Contains(me2.URL, "doc2") || strings.Contains(me2.URL, "doc3"), me2.URL)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue