From 5051a8637319b3ba8a8ca4f2136730b59b9f22ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20C=C3=B3rdova=20Nieto?= Date: Thu, 9 Jan 2025 13:02:53 -0600 Subject: [PATCH] update build-citation tests --- .../[dictionaryId]/contributors/build-citation.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/site/src/routes/[dictionaryId]/contributors/build-citation.ts b/packages/site/src/routes/[dictionaryId]/contributors/build-citation.ts index 2b8de30b3..731b791ba 100644 --- a/packages/site/src/routes/[dictionaryId]/contributors/build-citation.ts +++ b/packages/site/src/routes/[dictionaryId]/contributors/build-citation.ts @@ -36,27 +36,27 @@ if (import.meta.vitest) { describe(build_citation, () => { test('default', () => { const citation = build_citation({ t, dictionary }) - expect(citation).toEqual('2024. Trabajar Living Dictionary. Living Tongues Institute for Endangered Languages. https://livingdictionaries.app/traba') + expect(citation).toEqual('2025. Trabajar Living Dictionary. Living Tongues Institute for Endangered Languages. https://livingdictionaries.app/traba') }) test('custom citation', () => { const citation = build_citation({ t, dictionary, custom_citation: 'Hoctur, B.J.' }) - expect(citation).toEqual('Hoctur, B.J. 2024. Trabajar Living Dictionary. Living Tongues Institute for Endangered Languages. https://livingdictionaries.app/traba') + expect(citation).toEqual('Hoctur, B.J. 2025. Trabajar Living Dictionary. Living Tongues Institute for Endangered Languages. https://livingdictionaries.app/traba') }) test('two partners', () => { const citation = build_citation({ t, dictionary, partners: [{ name: 'The Language Team' }, { name: 'Hawaiian Linguistic Club' }] }) - expect(citation).toEqual('2024. Trabajar Living Dictionary. Living Tongues Institute for Endangered Languages, The Language Team, Hawaiian Linguistic Club. https://livingdictionaries.app/traba') + expect(citation).toEqual('2025. Trabajar Living Dictionary. Living Tongues Institute for Endangered Languages, The Language Team, Hawaiian Linguistic Club. https://livingdictionaries.app/traba') }) test('one partner, hide Living Tongues', () => { const citation = build_citation({ t, dictionary: { ...dictionary, hideLivingTonguesLogo: true }, partners: [{ name: 'The Language Team' }] }) - expect(citation).toEqual('2024. Trabajar Living Dictionary. The Language Team. https://livingdictionaries.app/traba') + expect(citation).toEqual('2025. Trabajar Living Dictionary. The Language Team. https://livingdictionaries.app/traba') }) test('hide Living Tongues', () => { const citation = build_citation({ t, dictionary: { ...dictionary, hideLivingTonguesLogo: true } }) - expect(citation).toEqual('2024. Trabajar Living Dictionary. https://livingdictionaries.app/traba') + expect(citation).toEqual('2025. Trabajar Living Dictionary. https://livingdictionaries.app/traba') }) }) }