Skip to content

Commit fe6bb82

Browse files
committed
style(core): avoid a self-assignment in the inlineStyle round-trip spec
1 parent b85b064 commit fe6bb82

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/core/ui/styling/style-declaration.spec.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ describe('view.inlineStyle', () => {
330330

331331
expect(view.inlineStyle.cssText).toBe('margin: var(--m); margin-left: 1;');
332332

333-
view.inlineStyle.cssText = view.inlineStyle.cssText;
333+
const serialized = view.inlineStyle.cssText;
334+
view.inlineStyle.cssText = serialized;
334335
expect(view.style.marginLeft).toBe(1);
335336
expect(view.style.marginTop).toBe(4);
336337
});

0 commit comments

Comments
 (0)