Skip to content

Commit efe06b0

Browse files
committed
fix after comments
1 parent 2a6ba9c commit efe06b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/fe-fpm-writer/test/unit/building-block.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3105,9 +3105,8 @@ describe('Building Blocks', () => {
31053105

31063106
const viewContent = fs.read(join(basePath, xmlViewFilePath));
31073107
expect(viewContent).toMatchSnapshot('generate-custom-form-field-without-fields');
3108-
expect(viewContent).toContain('<macros:fields>');
3108+
expect(viewContent).not.toMatch(/<macros:fields>[\s\S]*<macros:FormElement/);
31093109
expect(viewContent).toContain('<macros:FormElement');
3110-
expect(viewContent).toContain('FormElement');
31113110
expect(viewContent).toContain('Custom Form Field 2');
31123111
expect(viewContent).toContain('anchor="DataField::AnotherProperty"');
31133112
expect(viewContent).toContain('placement="Before"');

0 commit comments

Comments
 (0)