Skip to content

Commit

Permalink
fix(tweak): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Apr 2, 2017
1 parent 631823a commit 181f41b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/redolent-testing.js
Expand Up @@ -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 &&
Expand Down
1 change: 1 addition & 0 deletions dist/redolent.common.js
Expand Up @@ -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 &&
Expand Down
1 change: 1 addition & 0 deletions dist/redolent.es.js
Expand Up @@ -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 &&
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -135,6 +135,7 @@ function normalize (promise, Ctor) {
return promise
}

/* istanbul ignore next */
function isPromise (val, Promize) {
return val instanceof Promize || (
val !== null &&
Expand Down
4 changes: 2 additions & 2 deletions test.js
Expand Up @@ -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)
Expand Down

0 comments on commit 181f41b

Please sign in to comment.