@trenskow/parallel 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/test.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trenskow/parallel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "A small library for doing async tasks in parallel.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"homepage": "https://github.com/trenskow/parallel#readme",
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@trenskow/wait": "^1.3.7",
|
|
28
|
-
"chai": "^
|
|
28
|
+
"chai": "^5.0.0",
|
|
29
29
|
"chai-as-promised": "^7.1.1",
|
|
30
30
|
"eslint": "^8.56.0",
|
|
31
31
|
"mocha": "^10.2.0"
|
package/test.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
// Created 2022 by Kristian Trenskow
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { use as chaiUse, expect } from 'chai';
|
|
4
4
|
import chaiAsPromised from 'chai-as-promised';
|
|
5
5
|
import wait from '@trenskow/wait';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const { expect } = chai;
|
|
7
|
+
chaiUse(chaiAsPromised);
|
|
10
8
|
|
|
11
9
|
import parallel from './index.js';
|
|
12
10
|
|
|
13
11
|
describe('parallel', () => {
|
|
14
|
-
|
|
12
|
+
|
|
15
13
|
it ('should throw an error if promises are not provided.', () => {
|
|
16
14
|
expect(() => parallel(123)).to.throw('Promise is not thenable.');
|
|
17
15
|
});
|