MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / app

Function app

dom/test/node/html-render.ts:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9describe('HTML Driver', function () {
10 it('should output HTML when given a simple vtree stream', function (done) {
11 function app() {
12 return {
13 html: Rx.Observable.of(div('.test-element', ['Foobar'])),
14 };
15 }
16
17 function effect(html: string): void {
18 assert.strictEqual(html, '<div class="test-element">Foobar</div>');

Callers

nothing calls this directly

Calls 4

mapMethod · 0.65
elementsMethod · 0.65
selectMethod · 0.65
eventsMethod · 0.65

Tested by

no test coverage detected