var test = require("tape") var h = require("../h.js") var diff = require("../diff.js") var patch = require("../patch.js") var createElement = require("../create-element.js") test("coerce numbers to strings in children array", function (assert) { var leftNode = h("div", [ "clicked ", 1336, " times" ]) var rightNode = h("div", [ "clicked ", 1337, " times" ]) var rootNode = createElement(leftNode) var newRoot = patch(rootNode, diff(leftNode, rightNode)) assert.strictEqual( newRoot.outerHTML || newRoot.toString(), '