MCPcopy Index your code
hub / github.com/bugy/script-server / assertTextNode

Function assertTextNode

web-src/tests/unit/terminal_view_test.js:86–89  ·  view source on GitHub ↗
(element, text)

Source from the content-addressed store, hash-verified

84 }
85
86 function assertTextNode(element, text) {
87 expect(element.nodeType).toBe(3)
88 expect(getTextNodeText(element)).toBe(text)
89 }
90
91 function assertAnchor(element, href) {
92 expect(element.tagName).toBe('A')

Callers

nothing calls this directly

Calls 1

getTextNodeTextFunction · 0.85

Tested by

no test coverage detected