Skip to content

Commit

Permalink
fix: update deps
Browse files Browse the repository at this point in the history
fix: tests
Signed-off-by: Martin Auer <martin.auer97@gmail.com>
  • Loading branch information
auer-martin committed Apr 15, 2024
1 parent 602dc60 commit 965ccdd
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 154 deletions.
16 changes: 8 additions & 8 deletions packages/legacy/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"test": "echo 'nothing to do'"
},
"dependencies": {
"@credo-ts/anoncreds": "^0.5.1-alpha.1",
"@credo-ts/askar": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/indy-sdk-to-askar-migration": "^0.5.1-alpha.1",
"@credo-ts/indy-vdr": "^0.5.1-alpha.1",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/askar": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"@credo-ts/indy-sdk-to-askar-migration": "^0.5.1",
"@credo-ts/indy-vdr": "^0.5.1",
"@credo-ts/push-notifications": "^0.7.0",
"@credo-ts/question-answer": "^0.5.1-alpha.1",
"@credo-ts/question-answer": "^0.5.1",
"@credo-ts/react-hooks": "^0.6.0",
"@credo-ts/react-native": "^0.5.1-alpha.1",
"@credo-ts/react-native": "^0.5.1",
"@formatjs/intl-datetimeformat": "4.2.4",
"@formatjs/intl-displaynames": "5.2.4",
"@formatjs/intl-getcanonicallocales": "1.7.3",
Expand All @@ -32,7 +32,7 @@
"@formatjs/intl-pluralrules": "4.1.4",
"@formatjs/intl-relativetimeformat": "9.3.1",
"@hyperledger/anoncreds-react-native": "^0.2.1",
"@hyperledger/aries-askar-react-native": "^0.2.0",
"@hyperledger/aries-askar-react-native": "^0.2.1",
"@hyperledger/aries-bifold-core": "^1.0.0",
"@hyperledger/aries-oca": "^1.0.0",
"@hyperledger/indy-vdr-react-native": "^0.2.0",
Expand Down
25 changes: 9 additions & 16 deletions packages/legacy/core/__tests__/screens/W3cProofRequest.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,12 @@ describe('displays a proof request screen', () => {
timeTravel(1000)
})

const shareButton = tree.getByTestId(testIdWithKey('Share'))
const declineButton = tree.getByTestId(testIdWithKey('Decline'))
const cancelButton = tree.getByTestId(testIdWithKey('Cancel'))
const recordLoading = tree.getByTestId(testIdWithKey('RecordLoading'))

expect(recordLoading).not.toBeNull()
expect(shareButton).not.toBeNull()
expect(shareButton).toBeDisabled()
expect(declineButton).not.toBeNull()
expect(declineButton).not.toBeDisabled()
expect(cancelButton).not.toBeNull()
expect(cancelButton).not.toBeDisabled()
})

test('displays a proof request with all claims available', async () => {
Expand Down Expand Up @@ -409,12 +406,10 @@ describe('displays a proof request screen', () => {
timeTravel(1000)
})

const shareButton = tree.getByTestId(testIdWithKey('Share'))
const declineButton = tree.getByTestId(testIdWithKey('Decline'))
const cancelButton = tree.getByTestId(testIdWithKey('Cancel'))

expect(shareButton).not.toBeNull()
expect(shareButton).toBeDisabled()
expect(declineButton).not.toBeNull()
expect(cancelButton).not.toBeNull()
expect(cancelButton).not.toBeDisabled()
})

test('displays a proof request with one or more predicates not satisfied', async () => {
Expand Down Expand Up @@ -514,8 +509,7 @@ describe('displays a proof request screen', () => {
const ageLabel = getByText(/Age/, { exact: false })
const ageValue = getByText(t('ProofRequest.PredicateLe') + ' 18')
const ageNotSatisfied = getByText('ProofRequest.PredicateNotSatisfied', { exact: false })
const shareButton = getByTestId(testIdWithKey('Share'))
const declineButton = getByTestId(testIdWithKey('Decline'))
const cancelButton = getByTestId(testIdWithKey('Cancel'))

expect(predicateMessage).not.toBeNull()
expect(predicateMessage).toBeTruthy()
Expand All @@ -531,9 +525,8 @@ describe('displays a proof request screen', () => {
expect(ageValue).toBeTruthy()
expect(ageNotSatisfied).not.toBeNull()
expect(ageNotSatisfied).toBeTruthy()
expect(shareButton).not.toBeNull()
expect(shareButton).toBeDisabled()
expect(declineButton).not.toBeNull()
expect(cancelButton).not.toBeNull()
expect(cancelButton).not.toBeDisabled()
})
})
})
32 changes: 16 additions & 16 deletions packages/legacy/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"@babel/core": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@commitlint/cli": "^11.0.0",
"@credo-ts/anoncreds": "^0.5.1-alpha.1",
"@credo-ts/askar": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/indy-sdk-to-askar-migration": "^0.5.1-alpha.1",
"@credo-ts/indy-vdr": "^0.5.1-alpha.1",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/askar": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"@credo-ts/indy-sdk-to-askar-migration": "^0.5.1",
"@credo-ts/indy-vdr": "^0.5.1",
"@credo-ts/push-notifications": "^0.7.0",
"@credo-ts/question-answer": "^0.5.1-alpha.1",
"@credo-ts/question-answer": "^0.5.1",
"@credo-ts/react-hooks": "^0.6.0",
"@credo-ts/react-native": "^0.5.1-alpha.1",
"@credo-ts/react-native": "^0.5.1",
"@formatjs/intl-datetimeformat": "4.2.4",
"@formatjs/intl-displaynames": "5.2.4",
"@formatjs/intl-getcanonicallocales": "1.7.3",
Expand All @@ -58,7 +58,7 @@
"@formatjs/intl-pluralrules": "4.1.4",
"@formatjs/intl-relativetimeformat": "9.3.1",
"@hyperledger/anoncreds-react-native": "^0.1.0",
"@hyperledger/aries-askar-react-native": "^0.1.1",
"@hyperledger/aries-askar-react-native": "^0.2.1",
"@hyperledger/aries-bifold-verifier": "^1.0.0",
"@hyperledger/aries-oca": "^1.0.0",
"@hyperledger/indy-vdr-react-native": "^0.1.0",
Expand Down Expand Up @@ -145,15 +145,15 @@
"uuid": "^9.0.0"
},
"peerDependencies": {
"@credo-ts/anoncreds": "^0.5.1-alpha.1",
"@credo-ts/askar": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/indy-sdk-to-askar-migration": "^0.5.1-alpha.1",
"@credo-ts/indy-vdr": "^0.5.1-alpha.1",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/askar": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"@credo-ts/indy-sdk-to-askar-migration": "^0.5.1",
"@credo-ts/indy-vdr": "^0.5.1",
"@credo-ts/push-notifications": "^0.7.0",
"@credo-ts/question-answer": "^0.5.1-alpha.1",
"@credo-ts/question-answer": "^0.5.1",
"@credo-ts/react-hooks": "^0.6.0",
"@credo-ts/react-native": "^0.5.1-alpha.1",
"@credo-ts/react-native": "^0.5.1",
"@formatjs/intl-datetimeformat": "4.2.4",
"@formatjs/intl-displaynames": "5.2.4",
"@formatjs/intl-getcanonicallocales": "1.7.3",
Expand All @@ -163,7 +163,7 @@
"@formatjs/intl-pluralrules": "4.1.4",
"@formatjs/intl-relativetimeformat": "9.3.1",
"@hyperledger/anoncreds-react-native": "^0.1.0",
"@hyperledger/aries-askar-react-native": "^0.1.1",
"@hyperledger/aries-askar-react-native": "^0.2.1",
"@hyperledger/aries-bifold-verifier": "^1.0.0",
"@hyperledger/aries-oca": "^1.0.0",
"@hyperledger/indy-vdr-react-native": "^0.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/oca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"typescript": "^5.0.4"
},
"dependencies": {
"@credo-ts/anoncreds": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"axios": "^1.4.0",
"lodash.startcase": "^4.4.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/remote-logs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"homepage": "https://github.com/hyperledger/aries-mobile-agent-react-native#readme",
"devDependencies": {
"@babel/runtime": "^7.20.0",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1",
"@typescript-eslint/parser": "^6.6.0",
"axios": "^1.4.0",
"buffer": "^6.0.3",
Expand All @@ -45,7 +45,7 @@
"typescript": "^5.0.4"
},
"peerDependencies": {
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1",
"axios": "^1.4.0",
"buffer": "^6.0.3",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/verifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@credo-ts/anoncreds": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"@credo-ts/react-hooks": "^0.6.0",
"@hyperledger/anoncreds-shared": "^0.2.1",
"@types/jest": "^29.5.5",
Expand All @@ -36,8 +36,8 @@
"typescript": "^5.0.4"
},
"peerDependencies": {
"@credo-ts/anoncreds": "^0.5.1-alpha.1",
"@credo-ts/core": "^0.5.1-alpha.1",
"@credo-ts/anoncreds": "^0.5.1",
"@credo-ts/core": "^0.5.1",
"@credo-ts/react-hooks": "^0.6.0",
"@hyperledger/anoncreds-shared": "^0.2.1",
"react": "^18.2.0"
Expand Down
Loading

0 comments on commit 965ccdd

Please sign in to comment.