Skip to content

Commit d44de7c

Browse files
committed
Release 1.0.2
- Removed AsyncArray instantiation from tests where it wasn't required - Updated package.json
1 parent 2ce8957 commit d44de7c

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iterable-async",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A Collection of useful patterns.",
55
"main": "src",
66
"scripts": {

test/async-array.spec.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@ const { expect } = require('./support/chai'),
33

44
context('Async Array', () => {
55
describe('Class attributes and properties', () => {
6-
let asyncArray;
7-
8-
beforeEach(() => (asyncArray = new AsyncArray()));
9-
106
it('Should inherit from Array', () =>
11-
expect(asyncArray).to.be.instanceOf(Array));
7+
expect(AsyncArray.prototype).to.be.instanceOf(Array));
128

139
it('Should have access asyncFilter method', () =>
14-
expect(asyncArray.asyncFilter).to.be.a('function'));
10+
expect(AsyncArray.prototype.asyncFilter).to.be.a('function'));
1511

1612
it('Should have access asyncFind method', () =>
17-
expect(asyncArray.asyncFind).to.be.a('function'));
13+
expect(AsyncArray.prototype.asyncFind).to.be.a('function'));
1814

1915
it('Should have access asyncFindIndex method', () =>
20-
expect(asyncArray.asyncFindIndex).to.be.a('function'));
16+
expect(AsyncArray.prototype.asyncFindIndex).to.be.a('function'));
2117

2218
it('Should have access asyncMap method', () =>
23-
expect(asyncArray.asyncMap).to.be.a('function'));
19+
expect(AsyncArray.prototype.asyncMap).to.be.a('function'));
2420
});
2521
});

0 commit comments

Comments
 (0)