forked from microsoftgraph/msgraph-sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-helper.ts
More file actions
24 lines (19 loc) · 723 Bytes
/
test-helper.ts
File metadata and controls
24 lines (19 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* -------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
import "isomorphic-fetch";
import { Client } from "../src/index";
import { DummyAuthenticationProvider } from "./DummyAuthenticationProvider";
export function getClient(): Client {
return Client.initWithMiddleware({
authProvider: new DummyAuthenticationProvider(),
});
}
export function randomString() {
return Math.random()
.toString(36)
.substring(7);
}