|
|
@ -27,4 +27,8 @@ describe('Sitemap', function () {
|
|
|
|
it('loc-tag with url', function() {
|
|
|
|
it('loc-tag with url', function() {
|
|
|
|
assert.match(sitemap.getXmlAsString(), /<loc>https:\/\/test.lan\/blog\/article.html<\/loc>/)
|
|
|
|
assert.match(sitemap.getXmlAsString(), /<loc>https:\/\/test.lan\/blog\/article.html<\/loc>/)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it('loc-tag has robotos:noindex and has missing', function() {
|
|
|
|
|
|
|
|
assert.notMatch(sitemap.getXmlAsString(), /<loc>https:\/\/test.lan\/index.html<\/loc>/)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|