Converts tests to TypeScript (#300)

This commit is contained in:
Jaco Greeff
2019-02-14 10:48:08 +01:00
committed by GitHub
parent 2a14a8b553
commit 1e6eb2c283
158 changed files with 89 additions and 183 deletions
-5
View File
@@ -10,7 +10,6 @@ import { getNodeType } from './node';
/**
* @name isEmptyNode
* @signature isEmptyNode (node: Node): node is NodeEmpty
* @summary Returns true if node is NULL
* @description Refer to [Merkle Patricia Trie specification](https://github.com/ethereum/wiki/wiki/Patricia-Tree#optimization)
*/
@@ -20,7 +19,6 @@ export function isEmptyNode (node: Node): node is NodeEmpty {
/**
* @name isKvNode
* @signature isKvNode (node: Node): node is NodeKv
* @summary Returns true if node is not empty and contains a single key/value pair
* @description Refer to [Merkle Patricia Trie specification](https://github.com/ethereum/wiki/wiki/Patricia-Tree#optimization)
*/
@@ -30,7 +28,6 @@ export function isKvNode (node: Node): node is NodeKv {
/**
* @name isExtensionNode
* @signature isExtensionNode (node: Node): node is NodeKv
* @summary Returns true if node is an Extension 2-item node
* @description Refer to [Merkle Patricia Trie specification](https://github.com/ethereum/wiki/wiki/Patricia-Tree#optimization)
*/
@@ -40,7 +37,6 @@ export function isExtensionNode (node: Node): node is NodeKv {
/**
* @name isLeafNode
* @signature isLeafNode (node: Node): node is NodeKv
* @summary Returns true if node is an Leaf 2-item node
* @description Refer to [Merkle Patricia Trie specification](https://github.com/ethereum/wiki/wiki/Patricia-Tree#optimization)
*/
@@ -50,7 +46,6 @@ export function isLeafNode (node: Node): node is NodeKv {
/**
* @name isBranchNode
* @signature isBranchNode (node: Node): node is NodeKv
* @summary Returns true if node is an Branch 17-item node
* @description Refer to [Merkle Patricia Trie specification](https://github.com/ethereum/wiki/wiki/Patricia-Tree#optimization)
*/