Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(testing): Add Karma testing for browser #9

Merged
merged 9 commits into from
Mar 3, 2023
Merged

Conversation

elribonazo
Copy link
Contributor

@elribonazo elribonazo commented Mar 3, 2023

Description

Adds unit testing with Karma, wepback free, we continue using rollup and just test using browserify, karma and mocha.
Also had to apply some fixed in the code related to Buffer and base64Url encoding.

Checklist

  • Self-reviewed the diff
  • New code has inline documentation
  • New code has proper comments/tests
  • Any changes not covered by tests have been tested manually

@elribonazo elribonazo changed the title Features/karma feat(testing): Add Karma testing for browser Mar 3, 2023
Copy link
Contributor

@milosh86 milosh86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just hit Buffer is not defined error in browser, I see you fixed it here, great 👍

Copy link
Contributor

@milosh86 milosh86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@elribonazo elribonazo merged commit b15f148 into master Mar 3, 2023
@elribonazo elribonazo deleted the features/karma branch March 3, 2023 11:34
atala-dev added a commit that referenced this pull request Mar 28, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-03-28)

### Bug Fixes

* **apollo:** fix typo in public method ([#15](#15)) ([59cd862](59cd862))
* **apollo:** throw error when signing with x25519 ([#16](#16)) ([6371d27](6371d27))
* browser webpack issue ([#29](#29)) ([02d186e](02d186e))
* Browser webpack issue ([#30](#30)) ([8c59450](8c59450))
* pluto table recreate attempt ([#34](#34)) ([3a011cb](3a011cb))
* **pluto:** usage on agent & other minor updates ([#27](#27)) ([2a18d14](2a18d14))
* react-native-sqlite-storage complain ([#32](#32)) ([9ca0ad3](9ca0ad3))
* Webpack dev server infinite loop ([#33](#33)) ([94eb991](94eb991))

### Continuous Integration

* add semantic-release ([617c64a](617c64a))

### Features

* **agent:** Implement agent with basic mediation protocol, with examples ([#23](#23)) ([b0104b2](b0104b2))
* **agent:** Implementing DIDComm V2 Protocols + Demo showcasing ([#36](#36)) ([515d835](515d835))
* **apollo:** Implementing PeerDID ED25519 and X25519 algorithms for KeyAgreement and Authentication. ([#13](#13)) ([f6eabef](f6eabef))
* ATL 3641 - Pluto in wallet implementation ([#17](#17)) ([54579e5](54579e5))
* **examples:** add browser sdk integration example - keys and dids ([#14](#14)) ([4cd0e75](4cd0e75))
* **examples:** adding agent control buttons to browser demo ([#24](#24)) ([696309d](696309d))
* **examples:** initial examples setup + build config update ([#8](#8)) ([0b6ec28](0b6ec28))
* Pluto typeorm migration. ([#22](#22)) ([6107ef2](6107ef2))
* **Pollux:** Implementing Pollux.parseVerifiableCredential with tests ([#4](#4)) ([da05e65](da05e65))
* **testing:** Add Karma testing for browser ([#9](#9)) ([b15f148](b15f148))

### BREAKING CHANGES

* release Atala V2
atala-dev added a commit that referenced this pull request Apr 4, 2023
# [2.0.0](v1.0.0...v2.0.0) (2023-04-04)

### Bug Fixes

* **apollo:** fix typo in public method ([#15](#15)) ([59cd862](59cd862))
* **apollo:** throw error when signing with x25519 ([#16](#16)) ([6371d27](6371d27))
* browser webpack issue ([#29](#29)) ([02d186e](02d186e))
* Browser webpack issue ([#30](#30)) ([8c59450](8c59450))
* move required libs to dependencies instead of devDependencies ([#39](#39)) ([7a7716f](7a7716f))
* parse timestamp to date ([#43](#43)) ([0eb0cc6](0eb0cc6))
* pluto table recreate attempt ([#34](#34)) ([3a011cb](3a011cb))
* **pluto:** usage on agent & other minor updates ([#27](#27)) ([2a18d14](2a18d14))
* react-native-sqlite-storage complain ([#32](#32)) ([9ca0ad3](9ca0ad3))
* typeorm cleanup ([#40](#40)) ([f8765a9](f8765a9))
* Webpack dev server infinite loop ([#33](#33)) ([94eb991](94eb991))

### Continuous Integration

* add semantic-release ([617c64a](617c64a))

### Features

* **agent:** Implement agent with basic mediation protocol, with examples ([#23](#23)) ([b0104b2](b0104b2))
* **agent:** Implementing DIDComm V2 Protocols + Demo showcasing ([#36](#36)) ([515d835](515d835))
* **apollo:** Implementing PeerDID ED25519 and X25519 algorithms for KeyAgreement and Authentication. ([#13](#13)) ([f6eabef](f6eabef))
* ATL 3641 - Pluto in wallet implementation ([#17](#17)) ([54579e5](54579e5))
* **examples:** add browser sdk integration example - keys and dids ([#14](#14)) ([4cd0e75](4cd0e75))
* **examples:** adding agent control buttons to browser demo ([#24](#24)) ([696309d](696309d))
* **examples:** initial examples setup + build config update ([#8](#8)) ([0b6ec28](0b6ec28))
* Pluto typeorm migration. ([#22](#22)) ([6107ef2](6107ef2))
* **Pollux:** Implementing Pollux.parseVerifiableCredential with tests ([#4](#4)) ([da05e65](da05e65))
* **testing:** Add Karma testing for browser ([#9](#9)) ([b15f148](b15f148))

### BREAKING CHANGES

* release Atala V2
mixmix pushed a commit to mixmix/atala-prism-wallet-sdk-ts that referenced this pull request May 6, 2024
mixmix pushed a commit to mixmix/atala-prism-wallet-sdk-ts that referenced this pull request May 6, 2024
# [2.0.0](hyperledger-identus/sdk-ts@v1.0.0...v2.0.0) (2023-03-28)

### Bug Fixes

* **apollo:** fix typo in public method ([hyperledger-identus#15](hyperledger-identus#15)) ([59cd862](hyperledger-identus@59cd862))
* **apollo:** throw error when signing with x25519 ([hyperledger-identus#16](hyperledger-identus#16)) ([6371d27](hyperledger-identus@6371d27))
* browser webpack issue ([hyperledger-identus#29](hyperledger-identus#29)) ([02d186e](hyperledger-identus@02d186e))
* Browser webpack issue ([hyperledger-identus#30](hyperledger-identus#30)) ([8c59450](hyperledger-identus@8c59450))
* pluto table recreate attempt ([hyperledger-identus#34](hyperledger-identus#34)) ([3a011cb](hyperledger-identus@3a011cb))
* **pluto:** usage on agent & other minor updates ([hyperledger-identus#27](hyperledger-identus#27)) ([2a18d14](hyperledger-identus@2a18d14))
* react-native-sqlite-storage complain ([hyperledger-identus#32](hyperledger-identus#32)) ([9ca0ad3](hyperledger-identus@9ca0ad3))
* Webpack dev server infinite loop ([hyperledger-identus#33](hyperledger-identus#33)) ([94eb991](hyperledger-identus@94eb991))

### Continuous Integration

* add semantic-release ([617c64a](hyperledger-identus@617c64a))

### Features

* **agent:** Implement agent with basic mediation protocol, with examples ([hyperledger-identus#23](hyperledger-identus#23)) ([b0104b2](hyperledger-identus@b0104b2))
* **agent:** Implementing DIDComm V2 Protocols + Demo showcasing ([hyperledger-identus#36](hyperledger-identus#36)) ([515d835](hyperledger-identus@515d835))
* **apollo:** Implementing PeerDID ED25519 and X25519 algorithms for KeyAgreement and Authentication. ([hyperledger-identus#13](hyperledger-identus#13)) ([f6eabef](hyperledger-identus@f6eabef))
* ATL 3641 - Pluto in wallet implementation ([hyperledger-identus#17](hyperledger-identus#17)) ([54579e5](hyperledger-identus@54579e5))
* **examples:** add browser sdk integration example - keys and dids ([hyperledger-identus#14](hyperledger-identus#14)) ([4cd0e75](hyperledger-identus@4cd0e75))
* **examples:** adding agent control buttons to browser demo ([hyperledger-identus#24](hyperledger-identus#24)) ([696309d](hyperledger-identus@696309d))
* **examples:** initial examples setup + build config update ([hyperledger-identus#8](hyperledger-identus#8)) ([0b6ec28](hyperledger-identus@0b6ec28))
* Pluto typeorm migration. ([hyperledger-identus#22](hyperledger-identus#22)) ([6107ef2](hyperledger-identus@6107ef2))
* **Pollux:** Implementing Pollux.parseVerifiableCredential with tests ([hyperledger-identus#4](hyperledger-identus#4)) ([da05e65](hyperledger-identus@da05e65))
* **testing:** Add Karma testing for browser ([hyperledger-identus#9](hyperledger-identus#9)) ([b15f148](hyperledger-identus@b15f148))

### BREAKING CHANGES

* release Atala V2

Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
mixmix pushed a commit to mixmix/atala-prism-wallet-sdk-ts that referenced this pull request May 6, 2024
# [2.0.0](hyperledger-identus/sdk-ts@v1.0.0...v2.0.0) (2023-04-04)

### Bug Fixes

* **apollo:** fix typo in public method ([hyperledger-identus#15](hyperledger-identus#15)) ([59cd862](hyperledger-identus@59cd862))
* **apollo:** throw error when signing with x25519 ([hyperledger-identus#16](hyperledger-identus#16)) ([6371d27](hyperledger-identus@6371d27))
* browser webpack issue ([hyperledger-identus#29](hyperledger-identus#29)) ([02d186e](hyperledger-identus@02d186e))
* Browser webpack issue ([hyperledger-identus#30](hyperledger-identus#30)) ([8c59450](hyperledger-identus@8c59450))
* move required libs to dependencies instead of devDependencies ([hyperledger-identus#39](hyperledger-identus#39)) ([7a7716f](hyperledger-identus@7a7716f))
* parse timestamp to date ([hyperledger-identus#43](hyperledger-identus#43)) ([0eb0cc6](hyperledger-identus@0eb0cc6))
* pluto table recreate attempt ([hyperledger-identus#34](hyperledger-identus#34)) ([3a011cb](hyperledger-identus@3a011cb))
* **pluto:** usage on agent & other minor updates ([hyperledger-identus#27](hyperledger-identus#27)) ([2a18d14](hyperledger-identus@2a18d14))
* react-native-sqlite-storage complain ([hyperledger-identus#32](hyperledger-identus#32)) ([9ca0ad3](hyperledger-identus@9ca0ad3))
* typeorm cleanup ([hyperledger-identus#40](hyperledger-identus#40)) ([f8765a9](hyperledger-identus@f8765a9))
* Webpack dev server infinite loop ([hyperledger-identus#33](hyperledger-identus#33)) ([94eb991](hyperledger-identus@94eb991))

### Continuous Integration

* add semantic-release ([617c64a](hyperledger-identus@617c64a))

### Features

* **agent:** Implement agent with basic mediation protocol, with examples ([hyperledger-identus#23](hyperledger-identus#23)) ([b0104b2](hyperledger-identus@b0104b2))
* **agent:** Implementing DIDComm V2 Protocols + Demo showcasing ([hyperledger-identus#36](hyperledger-identus#36)) ([515d835](hyperledger-identus@515d835))
* **apollo:** Implementing PeerDID ED25519 and X25519 algorithms for KeyAgreement and Authentication. ([hyperledger-identus#13](hyperledger-identus#13)) ([f6eabef](hyperledger-identus@f6eabef))
* ATL 3641 - Pluto in wallet implementation ([hyperledger-identus#17](hyperledger-identus#17)) ([54579e5](hyperledger-identus@54579e5))
* **examples:** add browser sdk integration example - keys and dids ([hyperledger-identus#14](hyperledger-identus#14)) ([4cd0e75](hyperledger-identus@4cd0e75))
* **examples:** adding agent control buttons to browser demo ([hyperledger-identus#24](hyperledger-identus#24)) ([696309d](hyperledger-identus@696309d))
* **examples:** initial examples setup + build config update ([hyperledger-identus#8](hyperledger-identus#8)) ([0b6ec28](hyperledger-identus@0b6ec28))
* Pluto typeorm migration. ([hyperledger-identus#22](hyperledger-identus#22)) ([6107ef2](hyperledger-identus@6107ef2))
* **Pollux:** Implementing Pollux.parseVerifiableCredential with tests ([hyperledger-identus#4](hyperledger-identus#4)) ([da05e65](hyperledger-identus@da05e65))
* **testing:** Add Karma testing for browser ([hyperledger-identus#9](hyperledger-identus#9)) ([b15f148](hyperledger-identus@b15f148))

### BREAKING CHANGES

* release Atala V2

Signed-off-by: Francisco Javier Ribó Labrador <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants