Skip to content

Commit

Permalink
fix migration geography script 'expect' test
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-bergoens committed Oct 10, 2024
1 parent f2896ac commit d5454dd
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion api/tests/scripts/migrate-localized-challenges-geography_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { LocalizedChallenge } from '../../lib/domain/models/index.js';

describe('Script | migrate-localized-challenges-geography', () => {

it.fails('should copy geography field from airtable to PG', async () => {
it('should copy geography field from airtable to PG', async () => {
// given
databaseBuilder.factory.buildLocalizedChallenge({
id: 'recChallenge1',
Expand Down Expand Up @@ -82,6 +82,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PRIMARY,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
{
id: 'recChallenge1Nl',
Expand All @@ -91,6 +96,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PLAY,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
{
id: 'recChallenge2',
Expand All @@ -100,6 +110,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PRIMARY,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
{
id: 'recChallenge2Nl',
Expand All @@ -109,6 +124,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PAUSE,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
{
id: 'recChallenge3',
Expand All @@ -118,6 +138,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PRIMARY,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
{
id: 'recChallenge4',
Expand All @@ -127,6 +152,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PRIMARY,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
{
id: 'recChallenge5',
Expand All @@ -136,6 +166,11 @@ describe('Script | migrate-localized-challenges-geography', () => {
embedUrl: null,
urlsToConsult: null,
status: LocalizedChallenge.STATUSES.PRIMARY,
requireGafamWebsiteAccess: false,
isIncompatibleIpadCertif: false,
deafAndHardOfHearing: LocalizedChallenge.DEAF_AND_HARD_OF_HEARING_VALUES.RAS,
isAwarenessChallenge: false,
toRephrase: false,
},
]);
});
Expand Down

0 comments on commit d5454dd

Please sign in to comment.