test: improve overall test coverage

This commit is contained in:
thecodrr
2022-08-15 10:57:25 +05:00
parent 6d45c23e79
commit 87b778db94
25 changed files with 908 additions and 714 deletions

View File

@@ -2,6 +2,7 @@ import hosts from "../utils/constants";
export default class Debug {
strip(item) {
if (!item) return "{}";
return JSON.stringify({
title: !!item.title,
description: !!item.description,
@@ -9,6 +10,8 @@ export default class Debug {
colored: !!item.color,
type: item.type,
notebooks: item.notebooks,
notes: item.notes,
noteIds: item.noteIds,
tags: item.tags,
id: item.id,
contentId: item.contentId,