Skip to content

Commit

Permalink
✅test: add a tag test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 committed Feb 6, 2024
1 parent e0d943e commit ac5aa36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ test('p test', () => {
)
})

test('a test', () => {
const a = document.querySelectorAll('a')
expect(a[0]?.href).toEqual(
'https://vercel.com/?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app',
)
})

test('Image test', () => {
const img = document.querySelectorAll('img')
expect(img[0]?.alt).toEqual('Vercel Logo')
Expand Down

0 comments on commit ac5aa36

Please sign in to comment.