Skip to content

Commit c85460d

Browse files
jharrellstainless-app[bot]
authored andcommitted
fix(tests): fix tests
1 parent 24cbb10 commit c85460d

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

tests/api-resources/access-tokens.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Finch from '@tryfinch/finch-api';
44

55
const client = new Finch({
66
accessToken: 'My Access Token',
7-
clientId: '6d28c315-5eaa-4071-8ea5-f030eb45edbc',
7+
clientID: '6d28c315-5eaa-4071-8ea5-f030eb45edbc',
88
clientSecret: 'My Client Secret',
99
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
1010
});

tests/api-resources/top-level.test.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,12 @@ import Finch from '@tryfinch/finch-api';
44

55
const finch = new Finch({
66
accessToken: 'My Access Token',
7-
clientId: '4ab15e51-11ad-49f4-acae-f343b7794375',
7+
clientID: '4ab15e51-11ad-49f4-acae-f343b7794375',
88
clientSecret: 'My Client Secret',
99
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
1010
});
1111

1212
describe('top level methods', () => {
13-
test('getAccessToken with redirect', async () => {
14-
const response = await finch.getAccessToken('my-authorization-code', { redirectUri: '/my-app/redirect' });
15-
});
16-
17-
test('getAccessToken without redirect', async () => {
18-
const response = await finch.getAccessToken('my-authorization-code');
19-
});
20-
2113
test('getAuthUrl', async () => {
2214
// TODO
2315
});

tests/api-resources/webhooks.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import Finch from '@tryfinch/finch-api';
4-
import { toBase64 } from '@tryfinch/finch-api/core';
4+
import { toBase64 } from '@tryfinch/finch-api/internal/utils';
55

66
const finch = new Finch({
77
accessToken: 'My Access Token',
8-
clientId: '4ab15e51-11ad-49f4-acae-f343b7794375',
8+
clientID: '4ab15e51-11ad-49f4-acae-f343b7794375',
99
clientSecret: 'My Client Secret',
1010
baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010',
1111
});

tests/core.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fromBase64, toBase64 } from '@tryfinch/finch-api/core';
1+
import { fromBase64, toBase64 } from '@tryfinch/finch-api/internal/utils';
22

33
describe.each([true, false])('with Buffer (Buffer is %s)', (buffer) => {
44
let originalBuffer: BufferConstructor;

0 commit comments

Comments
 (0)