Skip to content

Commit 4ce36dc

Browse files
Fixing tests
1 parent ca2b5a4 commit 4ce36dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('CircleFlag', () => {
88
const countryFlag = getByTestId('circle-country-flag')
99
expect(countryFlag).toBeInTheDocument()
1010
expect(countryFlag.getAttribute('src')).toBe(
11-
'https://hatscripts.github.io/circle-flags/flags/xx.svg'
11+
'https://react-circle-flags.pages.dev/xx.svg'
1212
)
1313
expect(countryFlag.title).toBe('xx')
1414
expect(countryFlag.getAttribute('height')).toBe('100')
@@ -21,7 +21,7 @@ describe('CircleFlag', () => {
2121
const countryFlag = getByTestId('circle-country-flag')
2222
expect(countryFlag).toBeInTheDocument()
2323
expect(countryFlag.getAttribute('src')).toBe(
24-
'https://hatscripts.github.io/circle-flags/flags/es.svg'
24+
'https://react-circle-flags.pages.dev/es.svg'
2525
)
2626
expect(countryFlag.title).toBe('Spain')
2727
expect(countryFlag.getAttribute('height')).toBe('35')
@@ -50,7 +50,7 @@ describe('CircleFlag', () => {
5050
const countryFlag = getByTestId('circle-country-flag')
5151
expect(countryFlag).toBeInTheDocument()
5252
expect(countryFlag.getAttribute('src')).toBe(
53-
'https://hatscripts.github.io/circle-flags/flags/xx.svg'
53+
'https://react-circle-flags.pages.dev/xx.svg'
5454
)
5555
expect(countryFlag.title).toBe('xx')
5656
expect(countryFlag.getAttribute('height')).toBe('35')
@@ -63,7 +63,7 @@ describe('CircleFlagLanguage', () => {
6363
const languageFlag = getByTestId('circle-language-flag')
6464
expect(languageFlag).toBeInTheDocument()
6565
expect(languageFlag.getAttribute('src')).toBe(
66-
'https://hatscripts.github.io/circle-flags/flags/language/xx.svg'
66+
'https://react-circle-flags.pages.dev/language/xx.svg'
6767
)
6868
expect(languageFlag.title).toBe('xx')
6969
expect(languageFlag.getAttribute('height')).toBe('100')
@@ -80,7 +80,7 @@ describe('CircleFlagLanguage', () => {
8080
const languageFlag = getByTestId('circle-language-flag')
8181
expect(languageFlag).toBeInTheDocument()
8282
expect(languageFlag.getAttribute('src')).toBe(
83-
'https://hatscripts.github.io/circle-flags/flags/language/en-us.svg'
83+
'https://react-circle-flags.pages.dev/language/en-us.svg'
8484
)
8585
expect(languageFlag.title).toBe('United States')
8686
expect(languageFlag.getAttribute('height')).toBe('35')

0 commit comments

Comments
 (0)