Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnovau-shopfully committed Nov 2, 2024
1 parent ca2b5a4 commit 4ce36dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('CircleFlag', () => {
const countryFlag = getByTestId('circle-country-flag')
expect(countryFlag).toBeInTheDocument()
expect(countryFlag.getAttribute('src')).toBe(
'https://hatscripts.github.io/circle-flags/flags/xx.svg'
'https://react-circle-flags.pages.dev/xx.svg'
)
expect(countryFlag.title).toBe('xx')
expect(countryFlag.getAttribute('height')).toBe('100')
Expand All @@ -21,7 +21,7 @@ describe('CircleFlag', () => {
const countryFlag = getByTestId('circle-country-flag')
expect(countryFlag).toBeInTheDocument()
expect(countryFlag.getAttribute('src')).toBe(
'https://hatscripts.github.io/circle-flags/flags/es.svg'
'https://react-circle-flags.pages.dev/es.svg'
)
expect(countryFlag.title).toBe('Spain')
expect(countryFlag.getAttribute('height')).toBe('35')
Expand Down Expand Up @@ -50,7 +50,7 @@ describe('CircleFlag', () => {
const countryFlag = getByTestId('circle-country-flag')
expect(countryFlag).toBeInTheDocument()
expect(countryFlag.getAttribute('src')).toBe(
'https://hatscripts.github.io/circle-flags/flags/xx.svg'
'https://react-circle-flags.pages.dev/xx.svg'
)
expect(countryFlag.title).toBe('xx')
expect(countryFlag.getAttribute('height')).toBe('35')
Expand All @@ -63,7 +63,7 @@ describe('CircleFlagLanguage', () => {
const languageFlag = getByTestId('circle-language-flag')
expect(languageFlag).toBeInTheDocument()
expect(languageFlag.getAttribute('src')).toBe(
'https://hatscripts.github.io/circle-flags/flags/language/xx.svg'
'https://react-circle-flags.pages.dev/language/xx.svg'
)
expect(languageFlag.title).toBe('xx')
expect(languageFlag.getAttribute('height')).toBe('100')
Expand All @@ -80,7 +80,7 @@ describe('CircleFlagLanguage', () => {
const languageFlag = getByTestId('circle-language-flag')
expect(languageFlag).toBeInTheDocument()
expect(languageFlag.getAttribute('src')).toBe(
'https://hatscripts.github.io/circle-flags/flags/language/en-us.svg'
'https://react-circle-flags.pages.dev/language/en-us.svg'
)
expect(languageFlag.title).toBe('United States')
expect(languageFlag.getAttribute('height')).toBe('35')
Expand Down

0 comments on commit 4ce36dc

Please sign in to comment.