diff --git a/lib/workers/pr/changelog/release-notes.spec.ts b/lib/workers/pr/changelog/release-notes.spec.ts index 3a86c3db889fb9f365170c9d66d6bc800a9a4de9..622b0d618b3e3707b50d7f59523ccfeb76ef6f2b 100644 --- a/lib/workers/pr/changelog/release-notes.spec.ts +++ b/lib/workers/pr/changelog/release-notes.spec.ts @@ -68,8 +68,8 @@ describe('workers/pr/changelog/release-notes', () => { const now = DateTime.local(); it.each([ [now, 55], - [now.minus({ week: 2 }), 1435], - [now.minus({ year: 1 }), 14495], + [now.minus({ weeks: 2 }), 1435], + [now.minus({ years: 1 }), 14495], ])('works with string date (%s, %i)', (date, minutes) => { expect(releaseNotesCacheMinutes(date?.toISO())).toEqual(minutes); }); diff --git a/package.json b/package.json index 727963c8b729c89e647dd2576e830897abb42882..6505290141a2d05d2274d6334da265750ff52dd1 100644 --- a/package.json +++ b/package.json @@ -219,7 +219,7 @@ "@types/js-yaml": "4.0.3", "@types/json-dup-key-validator": "1.0.0", "@types/linkify-markdown": "1.0.1", - "@types/luxon": "2.0.0", + "@types/luxon": "2.0.1", "@types/markdown-it": "12.2.0", "@types/markdown-table": "2.0.0", "@types/moo": "0.5.5", diff --git a/yarn.lock b/yarn.lock index 915cf1a7379600b36598c3603bf398a413dcf431..8884f44f24248be64f1f4ff1ee754974e620d4e1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1895,10 +1895,10 @@ resolved "https://registry.yarnpkg.com/@types/linkify-markdown/-/linkify-markdown-1.0.1.tgz#0b750a592107dd46ecf2b5be0eeb7656b1fc814d" integrity sha512-RYDOtCol7/sHGhSJvWVnl0AmOdQQWgUYys6cwn5Lt3RiYhyhTLMLv7B9wdixMgCfnNt0MQj/YSGi3qN0IQqLeQ== -"@types/luxon@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-2.0.0.tgz#3dd1d8c51b49e34585c5158ba3393e95c51fee89" - integrity sha512-L7iL3FitRSeuz8fbeLtql7qU6inHVtwEDWI1+vBXgyp0J2tmxOD7TgMBiEQjII/Y/TPcwrKasXb1BPuiCXRgxg== +"@types/luxon@2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/luxon/-/luxon-2.0.1.tgz#4be7e91283de747ca061a071ef0c3747a710bda1" + integrity sha512-EqwKd+cuzQ6Jz/zsFYOofHzSfZSh1x3eBBj9+2IYk5vF3I1JnysPFK/I0YnkJ0artgvVY3jJYf2fGdIzoK0UIA== "@types/markdown-it@12.2.0": version "12.2.0"