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

Function createFile

src/test/test_helpers/input_helpers.js:69–80  ·  view source on GitHub ↗
(properties = {})

Source from the content-addressed store, hash-verified

67}
68
69export const createFile = function (properties = {}) {
70 const file = {
71 getAsFile() {
72 return {}
73 },
74 }
75 for (const key in properties) {
76 const value = properties[key]
77 file[key] = value
78 }
79 return file
80}
81
82export const typeCharacters = async (string) => {
83 const characters = Array.isArray(string) ? string : string.split("")

Callers 4

attachment_test.jsFile · 0.90
pasting_test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…