Skip to content

Commit

Permalink
Fix order of parameters in one of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnajdek committed Jun 15, 2020
1 parent bb7e1e9 commit e8f6ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ describe('Zotero Api Client', () => {

it('handles api.library.items().pretend(post, [I1b, I2b])', () => {
const body = [{ key: 'ITEM1111' }, { key: 'ITEM2222' }];
api(KEY).library(LIBRARY_KEY).items().pretend('post', { format: 'atom' }, body);
api(KEY).library(LIBRARY_KEY).items().pretend('post', body, { format: 'atom' });
assert.equal(lrc.method, 'post');
assert.equal(lrc.resource.library, LIBRARY_KEY);
assert.isNull(lrc.resource.items);
Expand Down

0 comments on commit e8f6ac2

Please sign in to comment.