-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpers.ts
35 lines (28 loc) · 860 Bytes
/
helpers.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {Headers} from "@angular/http";
import {SelfbitsAppConfig, SbAuthSucessResponse, SbUploadFile, SbExistingFile} from "../src/utils/interfaces";
export const TESTHEADERS:Headers = new Headers({
'Content-Type':'application/json',
'sb-app-id':'fancyId',
'sb-app-secret':'fancySecret'
});
export const TESTURL:string = 'www.test.io';
export const TESTCONFIG:SelfbitsAppConfig = {
BASE_URL: 'www.test.io',
APP_ID: 'fancyId',
APP_SECTRET: 'fancySecret'
};
export const TESTAUTHSUCESSRES:SbAuthSucessResponse = {
token:'fancyToken',
userId:'fancyUserId',
expires:'fancyExpiration'
};
export const mockUploadFile:SbUploadFile = {
file: "contentOfTheFile",
fileName: "theFileName",
filePath: "the/File/Path",
permissionScope: 'user'
}
export const mockExistingFile:SbExistingFile = {
fileId: "18849e2abb34c23a",
expiresInSeconds: 600000
}