Remove test polyfill, only include in tests (#322)

* Remove test polyfill, only include in tests

* Test polyfill for keyring
This commit is contained in:
Jaco Greeff
2019-02-19 16:02:45 +01:00
committed by GitHub
parent 98e2964c73
commit e19d377eec
6 changed files with 8 additions and 1 deletions
+2
View File
@@ -2,6 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import '@polkadot/util-crypto/schnorrkel/test-polyfill';
import { hexToU8a, stringToU8a } from '@polkadot/util/index';
import { cryptoWaitReady } from '@polkadot/util-crypto/index';
@@ -2,6 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import '../test-polyfill';
import { stringToU8a } from '@polkadot/util/index';
import { schnorrkelKeypairFromSeed, schnorrkelWaitReady } from '../index';
@@ -2,6 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import './test-polyfill';
describe('ready', () => {
let globalWA: typeof WebAssembly;
@@ -3,7 +3,6 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import '@polkadot/util/polyfill';
import './polyfill';
// export * from '@parity/schnorrkel-js';
export * from '@polkadot/schnorrkel-js';
@@ -2,6 +2,8 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import './test-polyfill';
import { stringToU8a } from '@polkadot/util/index';
import randomAsU8a from '../random/asU8a';