synchronous-promise
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -183,2 +183,5 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
} | ||
if (!args.length) { | ||
return SynchronousPromise.resolve([]); | ||
} | ||
return new SynchronousPromise(function (resolve, reject) { | ||
@@ -185,0 +188,0 @@ var |
@@ -180,2 +180,5 @@ "use strict"; | ||
} | ||
if (!args.length) { | ||
return SynchronousPromise.resolve([]); | ||
} | ||
return new SynchronousPromise(function (resolve, reject) { | ||
@@ -182,0 +185,0 @@ var |
@@ -616,2 +616,13 @@ /* | ||
}); | ||
it("should resolve empty promise array", function () { | ||
var | ||
all = SynchronousPromise.all([]), | ||
captured = null; | ||
all.then(function (data) { | ||
captured = data; | ||
}); | ||
expect(captured).to.have.length(0); | ||
}); | ||
it("should resolve with values in the correct order", function () { | ||
@@ -618,0 +629,0 @@ var |
{ | ||
"name": "synchronous-promise", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Synchronous Promise-like prototype to use in testing where you would have used an ES6 Promise", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # synchronous-promise |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10
1206
47329