Closed SgLy closed 6 months ago
Failing test case:
// core/data_update.test.ts test('', () => { const compDef = componentSpace .define() .data(() => ({ obj: { bbb: ['1'], }, })) .template(tmpl('<block wx:for="{{obj}}">{{item[0]}}</block>')) .registerComponent() const comp = glassEasel.Component.createWithContext('root', compDef, domBackend) const shadowRoot = comp.shadowRoot as glassEasel.ShadowRoot expect(shadowRoot.getComposedChildren()[2]!.asTextNode()!.textContent).toBe('1') comp.setData({ 'obj.bbb[0]': '6', }) expect(shadowRoot.getComposedChildren()[2]!.asTextNode()!.textContent).toBe('6') })
Failing test case: