Skip to content

CU-86a0edtew - Setup eslint/prettier and Git hooks on merged tstools … #23

CU-86a0edtew - Setup eslint/prettier and Git hooks on merged tstools …

CU-86a0edtew - Setup eslint/prettier and Git hooks on merged tstools … #23

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Unit Tests succeeded Aug 31, 2023 in 1s

Unit Tests ✔️

Tests passed successfully

✔️ mocha-results.json

50 tests were completed in 4s with 50 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
packages/neon-dappkit/src/NeonInvoker.spec.ts 10✔️ 4s
packages/neon-dappkit/src/NeonParser.spec.ts 31✔️ 13ms
packages/neon-dappkit/src/NeonSigner.spec.ts 9✔️ 530ms

✔️ packages/neon-dappkit/src/NeonInvoker.spec.ts

NeonInvoker
  ✔️ does calculateFee
  ✔️ does invokeFuncion
  ✔️ does testInvoke
  ✔️ handles array return
  ✔️ handles array return (again)
  ✔️ handles boolean return
  ✔️ handles boolean return (again)
  ✔️ handles bytestring return
  ✔️ handles integer return
  ✔️ handles map return

✔️ packages/neon-dappkit/src/NeonParser.spec.ts

NeonParser
  ✔️ converts address to script hash
  ✔️ converts Base64 to Hex and revert it
  ✔️ parses Address
  ✔️ parses Any
  ✔️ parses Array inside Map
  ✔️ parses array of primitive types
  ✔️ parses BlockHash or TransactionId
  ✔️ parses boolean
  ✔️ parses Boolean
  ✔️ parses ByteArray
  ✔️ parses ByteString without parseConfig
  ✔️ parses Hash160
  ✔️ parses Hash256
  ✔️ parses Integer
  ✔️ parses invalid Address
  ✔️ parses invalid ScriptHash and ScriptHashLittleEndian
  ✔️ parses Iterator
  ✔️ parses Map inside Array
  ✔️ parses map of primitive types
  ✔️ parses multiple types Array
  ✔️ parses multiple types Map
  ✔️ parses numbers
  ✔️ parses PublicKey
  ✔️ parses PublicKey
  ✔️ parses raw when UTF8 parsing fails
  ✔️ parses same internal types with Union
  ✔️ parses ScriptHash and ScriptHashLittleEndian
  ✔️ parses single type Array
  ✔️ parses single type Map
  ✔️ parses string
  ✔️ parses Union

✔️ packages/neon-dappkit/src/NeonSigner.spec.ts

NeonSigner
  ✔️ can encrypt and decrypt messages from an array that has the corresponding public key
  ✔️ can encrypt and decrypt messages from the corresponding public key
  ✔️ can NOT encrypt and decrypt messages from an array that doesn't have the corresponding public key
  ✔️ can NOT encrypt and decrypt messages from different public keys
  ✔️ can sign and verify
  ✔️ can sign using classic version and verify
  ✔️ can sign with no salt and verify
  ✔️ can verify
  ✔️ can verify when failing