Skip to content

Commit 5254b4e

Browse files
authored
Merge pull request #3 from CodeChillAlluna/config-for-tests
Add config for tests
2 parents c204dea + 6149b01 commit 5254b4e

2 files changed

Lines changed: 457 additions & 16 deletions

File tree

test/AuthService.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ const tokenAvailable: String = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e"
1414
+ "yJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2M"
1515
+ "jM5MDIyLCJleHAiOjFlKzMxfQ.yU5y9eCA5Z1VXrwbrRHoiqpMa5oii_5vApdg-dDDgIE";
1616

17+
(<any> window).env = {
18+
restApi: "http://localhost:8080",
19+
dockerApi: "ws://localhost:2375"
20+
};
21+
1722
test("testing loggedIn", () => {
1823
var auth = new AuthService();
1924
(global as any).localStorage = new LocalStorageMock(jest);

0 commit comments

Comments
 (0)