From 0c7662e06d2d155e9306ea640117cfd7938eac2d Mon Sep 17 00:00:00 2001 From: Avior Date: Fri, 7 May 2021 11:07:57 +0200 Subject: [PATCH] Fixed Sitemap image xml Signed-off-by: Avior --- .../__tests__/__snapshots__/index.test.ts.snap | 18 +++++++++--------- packages/easy-sitemap/src/Sitemap.ts | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) 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?: {