chore: fix outdated patchFlag

This commit is contained in:
Evan You 2019-10-02 10:59:47 -04:00
parent bec01c93bd
commit 9c9dd73017

View File

@ -111,7 +111,7 @@ describe('renderer: fragment', () => {
Fragment, Fragment,
null, null,
[h('div', 'one'), 'two'], [h('div', 'one'), 'two'],
PatchFlags.UNKEYED_V_FOR PatchFlags.UNKEYED_FRAGMENT
), ),
root root
) )
@ -122,7 +122,7 @@ describe('renderer: fragment', () => {
Fragment, Fragment,
null, null,
[h('div', 'foo'), 'bar', 'baz'], [h('div', 'foo'), 'bar', 'baz'],
PatchFlags.UNKEYED_V_FOR PatchFlags.KEYED_FRAGMENT
), ),
root root
) )
@ -137,7 +137,7 @@ describe('renderer: fragment', () => {
Fragment, Fragment,
null, null,
[h('div', { key: 1 }, 'one'), h('div', { key: 2 }, 'two')], [h('div', { key: 1 }, 'one'), h('div', { key: 2 }, 'two')],
PatchFlags.KEYED_V_FOR PatchFlags.KEYED_FRAGMENT
), ),
root root
) )
@ -151,7 +151,7 @@ describe('renderer: fragment', () => {
Fragment, Fragment,
null, null,
[h('div', { key: 2 }, 'two'), h('div', { key: 1 }, 'one')], [h('div', { key: 2 }, 'two'), h('div', { key: 1 }, 'one')],
PatchFlags.KEYED_V_FOR PatchFlags.KEYED_FRAGMENT
), ),
root root
) )