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

Function observerTest

src/test/unit/mutation_observer_test.js:30–36  ·  view source on GitHub ↗
(name, options = {}, callback)

Source from the content-addressed store, hash-verified

28}
29
30const observerTest = (name, options = {}, callback) => {
31 test(name, async () => {
32 install(options.html)
33 await callback()
34 uninstall()
35 })
36}
37
38testGroup("MutationObserver", () => {
39 observerTest("add character", { html: "a" }, async () => {

Callers 1

Calls 3

uninstallFunction · 0.85
installFunction · 0.70
testFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…