}"
`;
+exports[`stringify static html > should bail for <option> elements with null values 1`] = `
+"const { createElementVNode: _createElementVNode, openBlock: _openBlock, createElementBlock: _createElementBlock } = Vue
+
+return function render(_ctx, _cache) {
+ return (_openBlock(), _createElementBlock("div", null, _cache[0] || (_cache[0] = [
+ _createElementVNode("select", null, [
+ _createElementVNode("option", { value: null }),
+ _createElementVNode("option", { value: "1" }),
+ _createElementVNode("option", { value: "1" }),
+ _createElementVNode("option", { value: "1" }),
+ _createElementVNode("option", { value: "1" }),
+ _createElementVNode("option", { value: "1" })
+ ], -1 /* HOISTED */)
+ ])))
+}"
+`;
+
exports[`stringify static html > should bail for <option> elements with number values 1`] = `
"const { createElementVNode: _createElementVNode, openBlock: _openBlock, createElementBlock: _createElementBlock } = Vue
expect(code).toMatchSnapshot()
})
+ test('should bail for <option> elements with null values', () => {
+ const { ast, code } = compileWithStringify(
+ `<div><select><option :value="null" />${repeat(
+ `<option value="1" />`,
+ StringifyThresholds.ELEMENT_WITH_BINDING_COUNT,
+ )}</select></div>`,
+ )
+ expect(ast.cached).toMatchObject([cachedArrayBailedMatcher()])
+ expect(code).toMatchSnapshot()
+ })
+
test('eligible content (elements > 20) + non-eligible content', () => {
const { code } = compileWithStringify(
`<div>${repeat(