MCPcopy Create free account
hub / github.com/bugy/script-server / assertImageLine

Function assertImageLine

web-src/tests/unit/terminal_view_test.js:169–175  ·  view source on GitHub ↗
(lineElement, expectedSrc)

Source from the content-addressed store, hash-verified

167 }
168
169 function assertImageLine(lineElement, expectedSrc) {
170 expect(lineElement.tagName).toBe('DIV')
171
172 expect(lineElement.childNodes.length).toBe(1)
173 expect(lineElement.childNodes[0].tagName).toBe('IMG')
174 expect(lineElement.childNodes[0].getAttribute('src')).toBe(expectedSrc)
175 }
176
177 describe('change log content', function () {
178

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected