mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-19 13:36:29 +00:00
do before
This commit is contained in:
parent
e73206875a
commit
c785b400e8
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { expect } from 'vitest';
|
import { beforeAll, expect } from 'vitest';
|
||||||
import { Requests } from '../../requests';
|
import { Requests } from '../../requests';
|
||||||
import { OverrideParts } from '../base/urls';
|
import { OverrideParts } from '../base/urls';
|
||||||
import { PublicApi } from '../public';
|
import { PublicApi } from '../public';
|
||||||
|
@ -55,3 +55,7 @@ export async function sharedUserClient(): Promise<UserApi> {
|
||||||
cache.token = loginData.token;
|
cache.token = loginData.token;
|
||||||
return userClient(data.token);
|
return userClient(data.token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
beforeAll(async () => {
|
||||||
|
await sharedUserClient();
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue