Skip to content

Commit 7ebb670

Browse files
committed
Fix articles
1 parent 68a6452 commit 7ebb670

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/connection/__tests__/arrayconnection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ describe('connectionFromArray()', () => {
476476
letters,
477477
{first: 0}
478478
);
479-
}).to.throw('Argument "first" must be an non-negative integer');
479+
}).to.throw('Argument "first" must be a non-negative integer');
480480
});
481481

482482
it('throws an error if last <= 0', () => {
@@ -485,7 +485,7 @@ describe('connectionFromArray()', () => {
485485
letters,
486486
{last: 0}
487487
);
488-
}).to.throw('Argument "last" must be an non-negative integer');
488+
}).to.throw('Argument "last" must be a non-negative integer');
489489
});
490490

491491
it('returns all elements if cursors are invalid', () => {

src/connection/arrayconnection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function connectionFromArraySlice<T>(
8686
);
8787
if (typeof first === 'number') {
8888
if (first <= 0) {
89-
throw new Error('Argument "first" must be an non-negative integer');
89+
throw new Error('Argument "first" must be a non-negative integer');
9090
}
9191

9292
endOffset = Math.min(
@@ -96,7 +96,7 @@ export function connectionFromArraySlice<T>(
9696
}
9797
if (typeof last === 'number') {
9898
if (last <= 0) {
99-
throw new Error('Argument "last" must be an non-negative integer');
99+
throw new Error('Argument "last" must be a non-negative integer');
100100
}
101101

102102
startOffset = Math.max(

0 commit comments

Comments
 (0)