Skip to content

Commit 8c7999a

Browse files
mcg-webleebyron
authored andcommitted
Fix LoadMany empty array test (#57)
1 parent da2fb5f commit 8c7999a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/__tests__/abuse-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('Provides descriptive error messages for API abuse', () => {
5353
}).not.to.throw();
5454
});
5555

56-
it('LoadAll function requires a list of key', () => {
56+
it('LoadMany function requires a list of key', () => {
5757
var idLoader = new DataLoader(keys => Promise.resolve(keys));
5858

5959
expect(() => {
@@ -72,7 +72,7 @@ describe('Provides descriptive error messages for API abuse', () => {
7272

7373
// Empty array is acceptable
7474
expect(() => {
75-
idLoader.load([]);
75+
idLoader.loadMany([]);
7676
}).not.to.throw();
7777
});
7878

0 commit comments

Comments
 (0)