Skip to content

Commit 3eb84f2

Browse files
committed
remove test 'should handle invalid code with escapeInvalidCode option' since its been handled in invalid-jsx-flag.test.ts file
1 parent e227831 commit 3eb84f2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

packages/core/src/__tests__/builder/responsive-styles.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -145,22 +145,6 @@ describe('Responsive Styles', () => {
145145
expect(result).toContain('justifyContent: state.justifyContent || "flex-start"');
146146
});
147147

148-
test('should handle invalid code with escapeInvalidCode option', () => {
149-
const block: BuilderElement = {
150-
'@type': '@builder.io/sdk:Element',
151-
bindings: {
152-
'component.options.responsiveStyles.medium.flexDirection': 'invalid code {',
153-
'component.options.responsiveStyles.small.flexDirection': 'also invalid }',
154-
},
155-
};
156-
157-
const result = getStyleStringFromBlock(block, { escapeInvalidCode: true });
158-
159-
// Should contain the escaped invalid code
160-
expect(result).toContain('`invalid code { [INVALID CODE]`');
161-
expect(result).toContain('`also invalid } [INVALID CODE]`');
162-
});
163-
164148
test('should handle empty bindings', () => {
165149
const block: BuilderElement = {
166150
'@type': '@builder.io/sdk:Element',

0 commit comments

Comments
 (0)