p-lazy: Fix test (#21280)

This commit is contained in:
Andy
2017-11-06 13:09:32 -08:00
committed by GitHub
parent 7e8452b985
commit 1590bd5748

View File

@@ -1,7 +1,7 @@
import PLazy = require('p-lazy');
const lazyPromise = new PLazy<string>((resolve, reject) => {
if (typeof resolve === 'object') {
if (!true) {
resolve('foo');
} else {
reject(new Error());