FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
msgraph-sdk-javascript/test/development/test-helper.ts at dev · microsoftgraph/msgraph-sdk-javascript · GitHub
microsoftgraph
msgraph-sdk-javascript
Repository navigation
Code
Issues
79
(79)
Pull requests
35
(35)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
msgraph-sdk-javascript
/
test
/
development
/
test-helper.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (19 loc) · 737 Bytes
Breadcrumbs
msgraph-sdk-javascript
/
test
/
development
/
test-helper.ts
Copy path
File metadata and controls
23 lines (19 loc) · 737 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
"isomorphic-fetch"
;
import
{
Client
}
from
"../../src/index"
;
import
{
HardCodedAuthenticationProvider
}
from
"./HardCodedAuthenticationProvider"
;
export
function
getClient
(
)
:
Client
{
return
Client
.
initWithMiddleware
(
{
authProvider
:
new
HardCodedAuthenticationProvider
(
)
,
}
)
;
}
export
function
randomString
(
)
{
return
Math
.
random
(
)
.
toString
(
36
)
.
substring
(
7
)
;
}
Back
|
FazBrowse Home
|
New Git URL