Skip to content

Commit 54831c1

Browse files
author
Kadi Kraman
committed
Fix tests
1 parent 047f3c4 commit 54831c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('AppAuth', () => {
9191

9292
it('throws an error when redirectUrl is not a string', () => {
9393
expect(() => {
94-
authorize({ ...config }, { redirectUrl: {} });
94+
authorize({ ...config, redirectUrl: {} });
9595
}).toThrow('Config error: redirectUrl must be a string');
9696
});
9797

@@ -103,7 +103,7 @@ describe('AppAuth', () => {
103103

104104
it('throws an error when no refreshToken is passed in', () => {
105105
expect(() => {
106-
refresh(config);
106+
refresh(config, {});
107107
}).toThrow('Please pass in a refresh token');
108108
});
109109

0 commit comments

Comments
 (0)