Skip to content

Commit a5acb4b

Browse files
committed
[#3] Adds a test for the issue, and it seems to pass
1 parent 3dcdd11 commit a5acb4b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

__tests__/server/server.test.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ describe('server', () => {
221221
<link rel="notImportant" href="https://www.chipotle.com" />
222222
<link rel="canonical" href="https://www.tacobell.com" />
223223
<meta property="og:title" content="A very important title" />
224+
<meta name="description" content="Some Description" />
224225
</Helmet>,
225226
);
226227

@@ -230,9 +231,15 @@ describe('server', () => {
230231
expect(head?.priority.toString()).toContain(
231232
'property="og:title" content="A very important title"',
232233
);
234+
expect(head?.priority.toString()).toContain(
235+
'name="description" content="Some Description"',
236+
);
233237
expect(head?.meta.toString()).not.toContain(
234238
'property="og:title" content="A very important title"',
235239
);
240+
expect(head?.meta.toString()).not.toContain(
241+
'name="description" content="Some Description"',
242+
);
236243
});
237244

238245
it('does not prioritize SEO unless asked to', () => {

0 commit comments

Comments
 (0)