Skip to content

Commit

Permalink
refactor: 💡 rename protocol in tests (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
raduachim authored Oct 9, 2019
1 parent cb22cb3 commit 851af9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions __test__/accounts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ describe('accounts', () => {
}

const jwk = await JWK.generate('RSA', 1024, {
kid: 'mydata://account/jwks/account_key',
kid: 'egendata://account/jwks/account_key',
use: 'sig'
}, true)
header = {
jwk
}
payload = {
type: 'ACCOUNT_REGISTRATION',
iss: `mydata://account/${jwk.thumbprint}`,
iss: `egendata://account/${jwk.thumbprint}`,
pds: {
provider: 'dropbox',
access_token: 'foobar'
Expand Down
4 changes: 2 additions & 2 deletions __test__/services/tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ describe('tokens', () => {
let payloadFromDevice, header, deviceKey, connectionToken
beforeEach(async () => {
deviceKey = await JWK.generate('RSA', 1024, {
kid: 'mydata://account/jwks/account_key',
kid: 'egendata://account/jwks/account_key',
use: 'sig'
})
payloadFromDevice = {
type: 'CONNECTION',
sid: 'f0b5bef5-c137-4211-adaf-a0d6a37be8b1',
aud: 'https://mycv.work',
iss: 'mydata://account',
iss: 'egendata://account',
sub: 'b09b4355-8c95-40a4-a3dd-e176c4baab73'
}
header = {
Expand Down

0 comments on commit 851af9e

Please sign in to comment.