Note Test Utils

Summary

Lifecycle

Reference

createNote

Lets you create a new note for testing

/**
 *
 * :
 *  await NoteTestUtilsV4.createNote({
 *    wsRoot,
 *    vault,
 *    fname: "alpha",
 *    body: [`# H1`, `# H2`, `# H3`, "", "Some Content"].join("\n"),
 *  });
 *
 * By default, create note with following properties:
 *  - created & updated = 1
 *  - id = note.fname
 *  - body = ""
 *
 * @param opts
 * @returns
 */

Cook

Past Tasks


Backlinks