diff --git a/packages/easy-sitemap/__tests__/__snapshots__/index.test.ts.snap b/packages/easy-sitemap/__tests__/__snapshots__/index.test.ts.snap index d5f69a1..0643145 100644 --- a/packages/easy-sitemap/__tests__/__snapshots__/index.test.ts.snap +++ b/packages/easy-sitemap/__tests__/__snapshots__/index.test.ts.snap @@ -1,19 +1,19 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Basic Sitemap Tests should not add changefreq if value is incorrect 1`] = `"https://www.example.com/path"`; +exports[`Basic Sitemap Tests should not add changefreq if value is incorrect 1`] = `"https://www.example.com/path"`; -exports[`Basic Sitemap Tests should not add priority when it is incorrect 1`] = `"https://www.example.com/path"`; +exports[`Basic Sitemap Tests should not add priority when it is incorrect 1`] = `"https://www.example.com/path"`; -exports[`Basic Sitemap Tests should return a basic sitemap 1`] = `"https://www.example.com/pathhttps://www.example.com/"`; +exports[`Basic Sitemap Tests should return a basic sitemap 1`] = `"https://www.example.com/pathhttps://www.example.com/"`; -exports[`Basic Sitemap Tests should return a sitemap 1`] = `"https://www.example.com/pathalways2021-01-20T00:00:00.000Z1https://www.example.com/"`; +exports[`Basic Sitemap Tests should return a sitemap 1`] = `"https://www.example.com/pathalways2021-01-20T00:00:00.000Z1https://www.example.com/"`; -exports[`Basic Sitemap Tests should return an empty sitemap 1`] = `""`; +exports[`Basic Sitemap Tests should return an empty sitemap 1`] = `""`; -exports[`image:image tests should build corretcly with multiple image:image 1`] = `"https://www.example.com/pathhttps://www.example.com/testImage CaptionNantesTitleExample license urlhttps://www.example.com/test-2Image Caption2ParisTitle2Example license url"`; +exports[`image:image tests should build corretcly with multiple image:image 1`] = `"https://www.example.com/pathhttps://www.example.com/testImage CaptionNantesTitleExample license urlhttps://www.example.com/test-2Image Caption2ParisTitle2Example license url"`; -exports[`image:image tests should build corretcly with single image:image 1`] = `"https://www.example.com/pathhttps://www.example.com/testImage CaptionNantesTitleExample license url"`; +exports[`image:image tests should build corretcly with single image:image 1`] = `"https://www.example.com/pathhttps://www.example.com/testImage CaptionNantesTitleExample license url"`; -exports[`image:image tests should skip image:image if no location is set 1`] = `"https://www.example.com/path"`; +exports[`image:image tests should skip image:image if no location is set 1`] = `"https://www.example.com/path"`; -exports[`image:image tests should skip image:image if there is more than 1000 images 1`] = `"https://www.example.com/path"`; +exports[`image:image tests should skip image:image if there is more than 1000 images 1`] = `"https://www.example.com/path"`; diff --git a/packages/easy-sitemap/src/Sitemap.ts b/packages/easy-sitemap/src/Sitemap.ts index a9d5482..7d20490 100644 --- a/packages/easy-sitemap/src/Sitemap.ts +++ b/packages/easy-sitemap/src/Sitemap.ts @@ -4,7 +4,7 @@ export default class Sitemap { private static allowedChangefreq = ['always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never'] - private datas = '' + private datas = '' public constructor( private domain: string, private options?: {