From 69239d56e62e90120dc6417eda27f0b44f16ced3 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 26 Jun 2018 16:38:24 +0200 Subject: [PATCH] Use Jest default files as fallback --- package.json | 2 +- packages/util/src/syncify.spec.js | 4 ++-- packages/util/src/syncify.ts | 2 +- yarn.lock | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index d2eebd54f..14c9f8b3b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "test": "jest --coverage" }, "devDependencies": { - "@polkadot/dev": "^0.20.3", + "@polkadot/dev": "^0.20.5", "@polkadot/ts": "^0.1.3" } } diff --git a/packages/util/src/syncify.spec.js b/packages/util/src/syncify.spec.js index 7f4387637..d44134820 100644 --- a/packages/util/src/syncify.spec.js +++ b/packages/util/src/syncify.spec.js @@ -2,10 +2,10 @@ // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. -// import syncify from './syncify'; +import syncify from './syncify'; // FIXME fails locally now for some reason - not TS related. Since it is unused (for _right_ now), not an issue, but needs to be solved -describe.skip('syncify', () => { +describe('syncify', () => { it('returns the result of the promise', () => { expect( syncify( diff --git a/packages/util/src/syncify.ts b/packages/util/src/syncify.ts index 1e255b913..2eff4c060 100644 --- a/packages/util/src/syncify.ts +++ b/packages/util/src/syncify.ts @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. -import deasync from 'deasync'; +const deasync = require('deasync'); import isError from './is/error'; import isUndefined from './is/undefined'; diff --git a/yarn.lock b/yarn.lock index 481084f18..b50e35020 100644 --- a/yarn.lock +++ b/yarn.lock @@ -691,9 +691,9 @@ lodash "^4.17.5" to-fast-properties "^2.0.0" -"@polkadot/dev@^0.20.3": - version "0.20.3" - resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.20.3.tgz#4650600dd1f5952ee0054f267c7ebc76dd883593" +"@polkadot/dev@^0.20.5": + version "0.20.5" + resolved "https://registry.yarnpkg.com/@polkadot/dev/-/dev-0.20.5.tgz#99a08e9d910833679e3c305362f43ae3018ad7ee" dependencies: "@babel/cli" "^7.0.0-beta.51" "@babel/core" "^7.0.0-beta.51"