From 27ce377f6bf0fee647eda95597edf673001e6642 Mon Sep 17 00:00:00 2001 From: Weronika K Date: Fri, 27 Jan 2023 14:17:04 +0100 Subject: [PATCH] fix: args order --- README.md | 2 +- src/__tests__/batch.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e05ea7f..a523738f 100644 --- a/README.md +++ b/README.md @@ -752,7 +752,7 @@ const folderArray = await akord.folder.list(vaultId); ### note -#### `create(vaultId, name, content, parentId)` +#### `create(vaultId, content, name, parentId)` - `vaultId` (`string`, required) - `content` (`string`, required) - note text content, ex: stringified JSON diff --git a/src/__tests__/batch.test.ts b/src/__tests__/batch.test.ts index 55c321a3..bf3e82aa 100644 --- a/src/__tests__/batch.test.ts +++ b/src/__tests__/batch.test.ts @@ -54,7 +54,7 @@ describe("Testing batch actions", () => { const name = faker.random.words(); const content = faker.lorem.sentences(); - noteId = (await akord.note.create(vaultId, name, content)).noteId; + noteId = (await akord.note.create(vaultId, content, name)).noteId; const note = await akord.note.get(noteId); expect(note.versions.length).toEqual(1);