Fix zapier (#3688)

* Fix zapier testing

* Fix zapier create action

* Add timezone to dates
This commit is contained in:
martmull
2024-02-01 15:19:42 +01:00
committed by GitHub
parent 8abd5be4b5
commit 68e65e9526
6 changed files with 25 additions and 7 deletions

View File

@ -1,5 +1,6 @@
import App from '../index';
import { Bundle, createAppTester, tools, ZObject } from 'zapier-platform-core';
import App from '../index';
import getBundle from '../utils/getBundle';
import handleQueryParams from '../utils/handleQueryParams';
import requestDb from '../utils/requestDb';
@ -43,7 +44,7 @@ describe('custom auth', () => {
try {
await appTester(App.authentication.test, bundle);
} catch (error: any) {
expect(error.message).toContain('Unauthorized');
expect(error.message).toContain('Unauthenticated');
return;
}
throw new Error('appTester should have thrown');
@ -70,7 +71,7 @@ describe('custom auth', () => {
try {
await appTester(App.authentication.test, bundleWithExpiredApiKey);
} catch (error: any) {
expect(error.message).toContain('Unauthorized');
expect(error.message).toContain('Unauthenticated');
return;
}
throw new Error('appTester should have thrown');