Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Nov 8, 2023
1 parent 7c4df48 commit 91271f1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/pages/Events/sync.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ describe('test syncParticipants()', () => {
id: 10,
fullName: 'John Doe',
registrationDate: '2020-01-01',
registrationData: [],
state: 'complete',
checkedIn: true,
checkedInDt: '2020-01-02',
Expand All @@ -334,7 +333,6 @@ describe('test syncParticipants()', () => {
id: 30,
fullName: 'Jane Doe',
registrationDate: '2020-03-01',
registrationData: [],
state: 'unpaid',
checkedIn: true,
checkedInDt: null,
Expand All @@ -347,8 +345,8 @@ describe('test syncParticipants()', () => {
const storedEvent = {id: 1, serverId: 1};
const storedRegform = {id: 3, eventId: 1};
const storedParticipants = [
{id: 1, indicoId: 10, regformId: 3},
{id: 2, indicoId: 20, regformId: 3},
{id: 1, indicoId: 10, regformId: 3, registrationData: []},
{id: 2, indicoId: 20, regformId: 3, registrationData: []},
];
await db.events.add(storedEvent);
await db.regforms.add(storedRegform);
Expand All @@ -375,6 +373,7 @@ describe('test syncParticipants()', () => {
id: 2,
indicoId: 20,
regformId: 3,
registrationData: [],
deleted: 1,
},
{
Expand All @@ -383,7 +382,6 @@ describe('test syncParticipants()', () => {
regformId: 3,
fullName: 'Jane Doe',
registrationDate: '2020-03-01',
registrationData: [],
state: 'unpaid',
checkedIn: true,
checkedInDt: null,
Expand Down

0 comments on commit 91271f1

Please sign in to comment.