Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions packages/react-native-fantom/src/__tests__/Fantom-itest.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ describe('Fantom', () => {
expect(root.getRenderedOutput().toJSX()).toEqual(
<rn-view height="100.000000" width="100.000000" />,
);

root.destroy();
});

it('default config, list of children', () => {
Expand Down Expand Up @@ -207,8 +205,6 @@ describe('Fantom', () => {
<rn-view key="1" width="100.000000" height="100.000000" />
</>,
);

root.destroy();
});

it('include root', () => {
Expand All @@ -225,8 +221,6 @@ describe('Fantom', () => {
<rn-view width="100.000000" height="100.000000" />
</rn-rootView>,
);

root.destroy();
});

it('include layout metrics', () => {
Expand All @@ -253,8 +247,6 @@ describe('Fantom', () => {
width="100.000000"
/>,
);

root.destroy();
});

it('take props', () => {
Expand All @@ -273,8 +265,6 @@ describe('Fantom', () => {
})
.toJSX(),
).toEqual(<rn-view width="100.000000" />);

root.destroy();
});

it('skip props', () => {
Expand All @@ -293,8 +283,6 @@ describe('Fantom', () => {
})
.toJSX(),
).toEqual(<rn-view height="100.000000" />);

root.destroy();
});

it('filter out all props', () => {
Expand Down Expand Up @@ -325,8 +313,6 @@ describe('Fantom', () => {
<rn-view key="2" />
</>,
);

root.destroy();
});
});

Expand Down Expand Up @@ -370,8 +356,6 @@ describe('Fantom', () => {
},
type: 'Paragraph',
});

root.destroy();
});
});
});
Expand Down Expand Up @@ -494,7 +478,5 @@ describe('Fantom', () => {
x: 0,
y: 2,
});

root.destroy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ describe('onScroll', () => {
x: 0,
y: 1,
});

root.destroy();
});

it('batches onScroll event per UI tick', () => {
Expand Down Expand Up @@ -116,7 +114,5 @@ describe('onScroll', () => {
x: 0,
y: 2,
});

root.destroy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ describe('width and height style', () => {
width="20.000000%"
/>,
);

root.destroy();
});

it('handles numeric values passed in as strings', () => {
Expand All @@ -71,8 +69,6 @@ describe('width and height style', () => {
width="5.000000"
/>,
);

root.destroy();
});

it('handles invalid values, falling back to default', () => {
Expand Down Expand Up @@ -105,8 +101,6 @@ describe('width and height style', () => {
width="undefined"
/>,
);

root.destroy();
});
});

Expand Down Expand Up @@ -141,8 +135,6 @@ describe('margin style', () => {
width="5.000000"
/>,
);

root.destroy();
});

it('handles numeric values passed in as strings', () => {
Expand Down Expand Up @@ -175,7 +167,5 @@ describe('margin style', () => {
width="5.000000"
/>,
);

root.destroy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ describe('discrete event category', () => {
expect(deferredTextNativeElement.textContent).toBe(
'Deferred text: transition',
);

root.destroy();
});
});

Expand Down Expand Up @@ -253,7 +251,5 @@ describe('continuous event category', () => {
expect(deferredTextNativeElement.textContent).toBe(
'Deferred text: transition',
);

root.destroy();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ describe('Suspense', () => {
);

expect(resolveFunction).toBeNull();

root.destroy();
});

// TODO(T207868872): this test only succeeds with enableFabricCompleteRootInCommitPhase enabled.
Expand Down Expand Up @@ -239,7 +237,5 @@ describe('Suspense', () => {
expect(mountingLogs[0]).toBe(
'create view type: `View` nativeId: `square with data: red`',
);

root.destroy();
});
});