From 1f4ed82307970f2239a96f3a329697986560a3cf Mon Sep 17 00:00:00 2001 From: Matteo Giaccone Date: Wed, 4 Sep 2019 11:14:07 +0200 Subject: [PATCH] Add test for SEO title suffix --- test/src/seoTagsBuilder_test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/src/seoTagsBuilder_test.js b/test/src/seoTagsBuilder_test.js index 3ef0a0bd..0efab4c6 100644 --- a/test/src/seoTagsBuilder_test.js +++ b/test/src/seoTagsBuilder_test.js @@ -346,6 +346,18 @@ describe('seoTagsBuilder', () => { it('returns seo title', () => { expect(titleValue()).to.eq('SEO title'); }); + + context('with title suffix', () => { + beforeEach(() => { + globalSeo = memo(() => camelizeKeys({ + title_suffix: ' - Suffix!', + })); + }); + + it('returns seo title with suffix', () => { + expect(titleValue()).to.eq('SEO title - Suffix!'); + }); + }); }); }); });