Skip to content

Commit

Permalink
chore: typo (vueuse#4138)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nofa11 authored Aug 8, 2024
1 parent b45f365 commit 1a645a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/useFavicon/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ describe('useFavicon', () => {
})

it('ref const', () => {
const tagetRef = ref('v1')
const favicon = useFavicon(tagetRef)
const targetRef = ref('v1')
const favicon = useFavicon(targetRef)
expect(favicon.value).toEqual('v1')
tagetRef.value = 'v2'
targetRef.value = 'v2'
expect(favicon.value).toEqual('v2')
})

it('ref null', () => {
const tagetRef = ref(null)
const favicon = useFavicon(tagetRef)
const targetRef = ref(null)
const favicon = useFavicon(targetRef)
expect(favicon.value).toEqual(null)
})

Expand Down

0 comments on commit 1a645a2

Please sign in to comment.