From 181f41b6a3a9092b0ffa1d0be29fe4edbfae8955 Mon Sep 17 00:00:00 2001 From: tunnckoCore Date: Sun, 2 Apr 2017 17:35:48 +0300 Subject: [PATCH] fix(tweak): tests --- dist/redolent-testing.js | 1 + dist/redolent.common.js | 1 + dist/redolent.es.js | 1 + index.js | 1 + test.js | 4 ++-- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/redolent-testing.js b/dist/redolent-testing.js index a008716..e65b27c 100644 --- a/dist/redolent-testing.js +++ b/dist/redolent-testing.js @@ -135,6 +135,7 @@ function normalize (promise, Ctor) { return promise } +/* istanbul ignore next */ function isPromise (val, Promize$$1) { return val instanceof Promize$$1 || ( val !== null && diff --git a/dist/redolent.common.js b/dist/redolent.common.js index b77f735..857d686 100644 --- a/dist/redolent.common.js +++ b/dist/redolent.common.js @@ -409,6 +409,7 @@ function normalize (promise, Ctor) { return promise } +/* istanbul ignore next */ function isPromise (val, Promize$$1) { return val instanceof Promize$$1 || ( val !== null && diff --git a/dist/redolent.es.js b/dist/redolent.es.js index 341b487..fa47b5f 100644 --- a/dist/redolent.es.js +++ b/dist/redolent.es.js @@ -405,6 +405,7 @@ function normalize (promise, Ctor) { return promise } +/* istanbul ignore next */ function isPromise (val, Promize$$1) { return val instanceof Promize$$1 || ( val !== null && diff --git a/index.js b/index.js index ebf864f..58a84b1 100644 --- a/index.js +++ b/index.js @@ -135,6 +135,7 @@ function normalize (promise, Ctor) { return promise } +/* istanbul ignore next */ function isPromise (val, Promize) { return val instanceof Promize || ( val !== null && diff --git a/test.js b/test.js index 71ca906..173c6dc 100644 --- a/test.js +++ b/test.js @@ -198,9 +198,9 @@ if (semver.lt(process.version, '0.12.0')) { return 1 })() - test.strictEqual(Promise.___nativePromise, true) - test.strictEqual(promise.___nativePromise, true) promise.then(function (num) { + test.strictEqual(Promise.___nativePromise, true) + test.strictEqual(promise.___nativePromise, true) test.strictEqual(num, 1) done() }, done).catch(done)