MCPcopy
hub / github.com/basecamp/trix / createDocumentWithAttachment

Function createDocumentWithAttachment

src/test/unit/document_test.js:10–13  ·  view source on GitHub ↗
(attachment)

Source from the content-addressed store, hash-verified

8
9testGroup("Document", () => {
10 const createDocumentWithAttachment = function (attachment) {
11 const text = Text.textForAttachmentWithAttributes(attachment)
12 return new Document([ new Block(text) ])
13 }
14
15 test("documents with different attachments are not equal", () => {
16 const aDoc = createDocumentWithAttachment(new Attachment({ url: "a" }))

Callers 1

document_test.jsFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…