Skip to content

Commit 92108d2

Browse files
committed
test: add example config
1 parent baa44b7 commit 92108d2

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

tests/api/personal-update.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ describe('personal update should work', () => {
99
const limit = 10
1010
const result = await api.personalUpdate.single(
1111
'82D23B32-CF36-4C59-AD6F-D05E3552CBF3',
12-
{
13-
limit,
14-
}
12+
{ limit }
1513
)
1614
expect(isSuccess(result)).toBe(true)
1715
expect(

tests/config.example.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { resolveApiConfig } from '../src'
2+
3+
// This is an example file.
4+
// Since jike requires login to use it, please fill in the following configuration
5+
// and rename this file to `config.ts`.
6+
// You can also copy it from `jike-cli` https://github.com/open-jike/jike-client.
7+
// Run `jike-cli user info -rP`
8+
9+
export const config = resolveApiConfig({
10+
endpointId: 'keji',
11+
endpointUrl: 'https://keji.org/api/',
12+
bundleId: 'org.keji.keji',
13+
appVersion: '1.2.3',
14+
buildNo: '10086',
15+
userAgent: 'keji-useragent',
16+
17+
deviceId: '766ECA1A-C654-11EC-89F9-4F2C5FBE0E82',
18+
idfv: '82283B5C-C654-11EC-B221-BBD1DABE7B57',
19+
accessToken: 'paste-your-access-token',
20+
})
21+
22+
export const refreshToken = 'paste-your-refresh-token'

0 commit comments

Comments
 (0)