Socket
Book a DemoInstallSign in
Socket

@chainsafe/eth2.0-spec-test-util

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/eth2.0-spec-test-util

Eth2.0 yaml spec test utility for mocha/chai

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
19
-63.46%
Maintainers
2
Weekly downloads
 
Created
Source

eth2.0-spec-test-util

Mocha / Chai utility for interacting with eth2.0 spec tests

API

describeSpecTest

Run yaml Eth2.0 spec tests for a certain function Compares actual vs expected for all test cases

Parameters

  • testYamlPath string path to yaml spec test
  • testFunc Function function to use to generate output
  • getInput Function function to convert test case into input array (optional, default testCase=>testCase.input)
  • getExpected Function function to convert test case into a comparable expected output (optional, default testCase=>testCase.output)
  • getActual Function function to convert function output into comparable actual output (optional, default result=>result)
  • shouldError Function function to convert test case into a boolean, if the case should result in an error (optional, default (testCase,index,testSpec)=>false)
  • shouldSkip Function function to convert test case into a boolean, if the case should be skipped (optional, default (testCase,index,testSpec)=>false)

FAQs

Package last updated on 04 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts