Skip to content

Commit 9dab8cf

Browse files
committed
chore: update wording
1 parent cd5444e commit 9dab8cf

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/template/src/compiler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ it('line break feed', async () => {
6161

6262
it('translate', async () => {
6363
expect(
64-
await compile('{{ "hello, {name}" | t name="IJK" }}'),
64+
await compile('{{ "hello, {name}" | t name="JianJia" }}'),
6565
).toMatchInlineSnapshot(
6666
'""use strict";return(async()=>{let s="";return s;})();"',
6767
)

packages/template/src/filters.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ describe('builtin', () => {
288288

289289
it('t', async () => {
290290
expect(
291-
await render('{{= "hello, {name}" | t: name="IJK" }}', {
291+
await render('{{= "hello, {name}" | t: name="JianJia" }}', {
292292
translations: { 'hello, {name}': '你好,{name}' },
293293
}),
294-
).toMatchInlineSnapshot('"你好,IJK"')
294+
).toMatchInlineSnapshot('"你好,JianJia"')
295295
})
296296

297297
it('time', async () => {

packages/template/src/tags/expression.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ describe('w/ filters', async () => {
168168
)
169169

170170
expect(
171-
await compile('{{= "hello, {name}" | t: name="IJK" }}'),
171+
await compile('{{= "hello, {name}" | t: name="JianJia" }}'),
172172
).toMatchInlineSnapshot(
173-
'""use strict";return(async()=>{let s="";s+=e(await f.t.call(c,"hello, {name}",{name:"IJK"}));return s;})();"',
173+
'""use strict";return(async()=>{let s="";s+=e(await f.t.call(c,"hello, {name}",{name:"JianJia"}));return s;})();"',
174174
)
175175
})
176176
})

packages/template/src/tokenizer.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,17 @@ it('whitespace', async () => {
215215
})
216216

217217
it('expression', async () => {
218-
expect(await new Tokenizer(defaultOptions).parse('{{= "hello, {name}" | t name="IJK" }}')).toMatchInlineSnapshot(`
218+
expect(await new Tokenizer(defaultOptions).parse('{{= "hello, {name}" | t name="JianJia" }}')).toMatchInlineSnapshot(`
219219
{
220-
"end": 37,
220+
"end": 41,
221221
"name": "=",
222222
"next": null,
223223
"previous": null,
224-
"raw": "{{= "hello, {name}" | t name="IJK" }}",
224+
"raw": "{{= "hello, {name}" | t name="JianJia" }}",
225225
"start": 0,
226226
"stripAfter": false,
227227
"stripBefore": false,
228-
"value": ""hello, {name}" | t name="IJK"",
228+
"value": ""hello, {name}" | t name="JianJia"",
229229
}
230230
`)
231231
})

0 commit comments

Comments
 (0)