"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

require("../../injector");

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

var _ExtrinsicStatus = _interopRequireDefault(require("../../json/ExtrinsicStatus.001.json"));

// Copyright 2017-2019 @polkadot/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('ExtrinsicStatus', () => {
  let status;
  beforeEach(() => {
    status = (0, _create.createType)('ExtrinsicStatus', _ExtrinsicStatus.default.params.result);
  });
  it('has the correct type', () => {
    expect(status.type).toEqual('Finalized');
  });
  it('has the correct hash', () => {
    expect(status.value.toString()).toEqual('0xc465b92a72b1d20918d64cd4effa70c2bb58b53a3f8c24c3ac8fd8f465f059b4');
  });
});