Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: remove notebook favoriting

thecodrr7722c9f1a531
diff --git a/packages/core/__tests__/notebooks.test.js b/packages/core/__tests__/notebooks.test.js
index 27d1edaad..c64f1747b 100644
--- a/packages/core/__tests__/notebooks.test.js
+++ b/packages/core/__tests__/notebooks.test.js
@@ -51,25 +51,6 @@ test("unpin a notebook", () =>
expect(notebook.data.pinned).toBe(false);
}));
-test("favorite a notebook", () =>
- notebookTest().then(async ({ db, id }) => {
- let notebook = db.notebooks.notebook(id);
- await notebook.favorite();
- notebook = db.notebooks.notebook(id);
- expect(notebook.data.favorite).toBe(true);
- }));
-
-test("unfavorite a notebook", () =>
- notebookTest().then(async ({ db, id }) => {
- let notebook = db.notebooks.notebook(id);
- await notebook.favorite();
- notebook = db.notebooks.notebook(id);
- expect(notebook.data.favorite).toBe(true);
- await notebook.favorite();
- notebook = db.notebooks.notebook(id);
- expect(notebook.data.favorite).toBe(false);
- }));
-
test("delete a notebook", () =>
notebookTest().then(async ({ db, id }) => {
let noteId = await db.notes.add(TEST_NOTE);
diff --git a/packages/core/models/notebook.js b/packages/core/models/notebook.js
index a3f41e242..4c286aac5 100644
--- a/packages/core/models/notebook.js
+++ b/packages/core/models/notebook.js
@@ -34,8 +34,4 @@ export default class Notebook {
pin() {
return this._toggle("pinned");
}
-
- favorite() {
- return this._toggle("favorite");
- }
}