mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
ci: improve restore test
This commit is contained in:
@@ -31,6 +31,8 @@ test("restore a deleted note", () =>
|
|||||||
expect(db.trash.all.length).toBe(0);
|
expect(db.trash.all.length).toBe(0);
|
||||||
let note = db.notes.note(id);
|
let note = db.notes.note(id);
|
||||||
expect(note).toBeDefined();
|
expect(note).toBeDefined();
|
||||||
|
expect(await note.text()).toBe(TEST_NOTE.content.text);
|
||||||
|
expect(await note.delta()).toStrictEqual(TEST_NOTE.content.delta);
|
||||||
expect(
|
expect(
|
||||||
db.notebooks
|
db.notebooks
|
||||||
.notebook(nbId)
|
.notebook(nbId)
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ export default class Lookup {
|
|||||||
async notes(array, query) {
|
async notes(array, query) {
|
||||||
const textIds = array.map(v => v.content.text);
|
const textIds = array.map(v => v.content.text);
|
||||||
const textArray = await this._db.text.multi(textIds);
|
const textArray = await this._db.text.multi(textIds);
|
||||||
console.log(textArray, textIds);
|
|
||||||
const filteredText = tfun.filter(text => fuzzysearch(query, text.data))(
|
const filteredText = tfun.filter(text => fuzzysearch(query, text.data))(
|
||||||
textArray
|
textArray
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export const HOST = "http://192.168.10.11:4000/";
|
export const HOST = "http://localhost:8000/";
|
||||||
export const HEADERS = {
|
export const HEADERS = {
|
||||||
agent: "nn/1.0.0",
|
agent: "nn/1.0.0",
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
|||||||
Reference in New Issue
Block a user