- Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathtest-helper.ts
23 lines (19 loc) · 746 Bytes
/
test-helper.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
import{Client}from"../src/index";
import{DummyAuthenticationProvider}from"./DummyAuthenticationProvider";
exportfunctiongetClient(): Client{
returnClient.initWithMiddleware({
authProvider: newDummyAuthenticationProvider(),
});
}
exportfunctionrandomString(){
returnMath.random()
.toString(36)
.substring(7);
}
exportconstDUMMY_BASE_URL="https://localhost";