Commit 9c37a839 authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Fix tests

parent f859aac3
......@@ -41,16 +41,16 @@ Object {
"day": "dag",
},
"screens/events/EventAdminScreen": Object {
"Card": "Pin",
"Cash": "Cash",
"CARD": "PIN",
"CASH": "CONTANT",
"Could not load the event...": "Kon het evenement niet laden...",
"Disabled filter": "Filter uitgeschakeld",
"Filtering on payment": "Filteren op betaling",
"Filtering on presence": "Filteren op aanwezigheid",
"Find a member": "Zoek een lid",
"NOT PAID": "NIET BETAALD",
"No registrations found with this filter.": "Geen inschrijvingen gevonden met dit filter.",
"No registrations found...": "Geen inschrijvingen gevonden...",
"Not paid": "Niet betaald",
"Present": "Aanwezig",
"Registrations": "Inschrijvingen",
},
......
......@@ -53,7 +53,7 @@ describe('registration saga', () => {
[matchers.call.like({ fn: apiRequest, args: ['events/1/registrations'] }), { }],
])
.dispatch(registrationActions.register(1))
.put(eventActions.event(1))
.put(eventActions.event(1, false))
.silentRun());
it('should show a snackbar when the request succeeds', () => expectSaga(registrationSaga)
......@@ -188,7 +188,7 @@ describe('registration saga', () => {
[matchers.call.fn(apiRequest), {}],
])
.dispatch(registrationActions.cancel(1))
.put(eventActions.event(1))
.put(eventActions.event(1, false))
.silentRun());
it('should put event action when the request fails', () => expectSaga(registrationSaga)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment