{"size": 558, "ext": "js", "max_stars_repo_path": "docs/examples/promise/01_simple_connect/node_modules/@chainx-v2/types/interfaces/state/KeyValueOption.spec.js", "max_stars_repo_name": "chainpool/chainx.js-v2", "max_stars_repo_stars_event_min_datetime": "2020-10-03T03:02:13.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-03T03:02:13.000Z", "max_issues_repo_path": "docs/examples/promise/06_make_transfer/node_modules/@chainx-v2/types/interfaces/state/KeyValueOption.spec.js", "max_issues_repo_name": "chainpool/chainx.js-v2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "docs/examples/promise/06_make_transfer/node_modules/@chainx-v2/types/interfaces/state/KeyValueOption.spec.js", "max_forks_repo_name": "chainpool/chainx.js-v2", "max_forks_repo_forks_event_min_datetime": "2020-10-03T03:02:16.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-03T03:02:16.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 37.2, "max_line_length": 79, "alphanum_fraction": 0.688172043}
"use strict";

var _create = require("../../create");

// Copyright 2017-2020 @chainx-v2/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
describe('KeyValueOption', () => {
  const registry = new _create.TypeRegistry();
  it('exposes the properties for key/value', () => {
    const [key, value] = registry.createType('KeyValueOption', ['0x11223344']);
    expect(key.toHex()).toEqual('0x11223344');
    expect(value.isNone).toEqual(true);
  });
});