A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
ci: improve restore test
thecodrr5d8618f30678
diff --git a/packages/core/__tests__/trash.test.js b/packages/core/__tests__/trash.test.jsindex 397ba0f40..f6efa8b81 100644--- a/packages/core/__tests__/trash.test.js+++ b/packages/core/__tests__/trash.test.js@@ -31,6 +31,8 @@ test("restore a deleted note", () =>expect(db.trash.all.length).toBe(0);let note = db.notes.note(id);expect(note).toBeDefined();+ expect(await note.text()).toBe(TEST_NOTE.content.text);+ expect(await note.delta()).toStrictEqual(TEST_NOTE.content.delta);expect(db.notebooks.notebook(nbId)diff --git a/packages/core/api/lookup.js b/packages/core/api/lookup.jsindex ea6209d75..85e926db8 100644--- a/packages/core/api/lookup.js+++ b/packages/core/api/lookup.js@@ -18,7 +18,6 @@ export default class Lookup {async notes(array, query) {const textIds = array.map(v => v.content.text);const textArray = await this._db.text.multi(textIds);- console.log(textArray, textIds);const filteredText = tfun.filter(text => fuzzysearch(query, text.data))(textArray);diff --git a/packages/core/utils/constants.js b/packages/core/utils/constants.jsindex e241fa7c9..a28074fae 100644--- a/packages/core/utils/constants.js+++ b/packages/core/utils/constants.js@@ -1,4 +1,4 @@-export const HOST = "http://192.168.10.11:4000/";+export const HOST = "http://localhost:8000/";export const HEADERS = {agent: "nn/1.0.0","Content-Type": "application/json"