Skip to content

Commit e27abe8

Browse files
Merge branch 'develop' into feature/45792
2 parents 793d9f8 + 0dc688a commit e27abe8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Source/dom/layers/__tests__/SymbolInstance.test.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,17 @@ test('should resize in response to smart layout changes', (_context, document) =
9090
instance.overrides[0].value = '0'.repeat(1000)
9191
instance.resizeWithSmartLayout()
9292
const widthAfterSmartLayout = instance.frame.width
93-
expect(initialWidth < widthAfterSmartLayout).toBe(true)
93+
expect(widthAfterSmartLayout).toBeGreaterThan(initialWidth)
9494
})
95+
96+
// This test should work, but it doesn't :confused_doggo:
97+
// test('should change an override value', (_context, document) => {
98+
// const { master } = createSymbolMaster(document)
99+
// const instance = new SymbolInstance({
100+
// symbolId: master.symbolId,
101+
// parent: document.selectedPage,
102+
// })
103+
// expect(instance.overrides[0].value).toBe('Test value')
104+
// instance.overrides[0].value = 'New value'
105+
// expect(instance.overrides[0].value).toBe('New value')
106+
// })

0 commit comments

Comments
 (0)