Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LennertDefauw committed Apr 11, 2022
1 parent 28ab3aa commit 81673d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@threefoldjimber/threefold_login",
"version": "1.4.2",
"version": "1.4.3",
"description": "threefold login js sdk",
"main": "dist/index.js",
"types": "dist/index.d.js",
Expand Down
6 changes: 4 additions & 2 deletions test/unit/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { parseSignedAttemptFromUrl } from '../../src/utils/parse';
const protocol = 'https:';

// const rawHost = 'test-bot-front-end.io';
const rawHost = 'login.staging.jimber.org';
const rawHost = 'login.staging.jimber.io';

const threeFoldAPIHost = protocol + '//' + rawHost;
const appId = 'test.threefoldlogin';
Expand All @@ -29,7 +29,7 @@ const appId = 'test.threefoldlogin';
const seedPhrase =
'calm science teach foil burst until next mango hole sponsor fold bottom cousin push focus track truly tornado turtle over tornado teach large fiscal';
const redirectUrl = 'https://test-bot-front-end.io';
const kycBackendUrl = 'https://openkyc.staging.jimber.org';
const kycBackendUrl = 'https://openkyc.staging.jimber.io';

let login: ThreefoldLogin;
let state: string;
Expand Down Expand Up @@ -234,9 +234,11 @@ describe('ThreefoldLogin', () => {
}, 1000);

it('should check if email is verified', async () => {
console.log(login.threeFoldAPIHost)
const emailData = await login.isEmailVerified(
testSignedEmailIdentifier
);
console.log(emailData)
expect(emailData).toBe(true);
}, 1000);

Expand Down

0 comments on commit 81673d4

Please sign in to comment.