fix(runtime-core): patchChildren first in patchElement (#4313)
This commit is contained in:
@@ -103,18 +103,18 @@ describe('test renderer', () => {
|
||||
expect(updateOps.length).toBe(2)
|
||||
|
||||
expect(updateOps[0]).toEqual({
|
||||
type: NodeOpTypes.SET_ELEMENT_TEXT,
|
||||
targetNode: root.children[0],
|
||||
text: 'bar'
|
||||
})
|
||||
|
||||
expect(updateOps[1]).toEqual({
|
||||
type: NodeOpTypes.PATCH,
|
||||
targetNode: root.children[0],
|
||||
propKey: 'id',
|
||||
propPrevValue: 'test',
|
||||
propNextValue: 'foo'
|
||||
})
|
||||
|
||||
expect(updateOps[1]).toEqual({
|
||||
type: NodeOpTypes.SET_ELEMENT_TEXT,
|
||||
targetNode: root.children[0],
|
||||
text: 'bar'
|
||||
})
|
||||
})
|
||||
|
||||
it('should be able to serialize nodes', () => {
|
||||
|
||||
Reference in New Issue
Block a user