Skip to content

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

todo: add tests for groupBy

thecodrraf851bc6a71f
diff --git a/packages/core/api/database.js b/packages/core/api/database.js
index 7a4856ac6..c939ca4c7 100644
--- a/packages/core/api/database.js
+++ b/packages/core/api/database.js
@@ -54,6 +54,7 @@ class Database {
* @param {string} by One from 'abc', 'month', 'year' or 'week'. Leave it empty for default grouping.
*/
groupNotes(by) {
+ //TODO add tests
let notes = this.getNotes();
switch (by) {
case "abc":