Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Add test for SEO title suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
matjack1 committed Sep 4, 2019
1 parent 1865d83 commit 1f4ed82
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/src/seoTagsBuilder_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
});
});
});
});
});
Expand Down

0 comments on commit 1f4ed82

Please sign in to comment.