Skip to content

Commit 51c29c2

Browse files
committed
tweak tests
1 parent d0388f2 commit 51c29c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/diretive.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('basic', () => {
5656
const App = defineComponent({
5757
setup() {
5858
// <p v-t="msg"></p>
59-
const msg = ref('hello')
59+
const msg = ref('binding')
6060
const t = resolveDirective('t')
6161
return () => {
6262
return withDirectives(h('p'), [[t, msg.value]])
@@ -84,7 +84,7 @@ test('object literal', async () => {
8484

8585
const App = defineComponent({
8686
setup() {
87-
// <p v-t="{ path: 'hello', locale: 'ja', args: { name } }"></p>
87+
// <p v-t="{ path: 'hello', locale: 'ja', args: { name: name.value } }"></p>
8888
const name = ref('kazupon')
8989
const t = resolveDirective('t')
9090
return () => {

0 commit comments

Comments
 (0)