Skip to content

Commit 50ef2ac

Browse files
committed
chore: fix tests
1 parent 501ab72 commit 50ef2ac

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import {StringParamsProvider, useTranslations} from '../../../../dist/core';
22

33
export default function Page() {
4-
const t = useTranslations();
54
return (
65
<StringParamsProvider value={{foo: 'foovalue'}}>
76
<StringParamsProvider value={{bar: 'barvalue'}}>
8-
<p>{t('{foo} / {bar}')}</p>
7+
<MyComponent />
98
</StringParamsProvider>
109
</StringParamsProvider>
1110
);
1211
}
12+
13+
function MyComponent() {
14+
const t = useTranslations();
15+
return (
16+
<p>{t('{foo} / {bar}')}</p>
17+
);
18+
}

packages/root/test/string-params.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test('merge nested StringParamsProvider values', async () => {
2525
"<!doctype html>
2626
<html>
2727
<head>
28-
<meta charset=\"utf-8\">
28+
<meta charset=\\"utf-8\\">
2929
</head>
3030
<body>
3131
<p>foovalue / barvalue</p>

0 commit comments

Comments
 (0)