Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
key={cellIndex}
linked
onToggle={this._handleToggleAllArtifacts}
style={cellStyles && [...cellStyles, styles.stickyColumnStickyHeader]}
/>
);
case CellType.TEXT:
return (
);
case CellType.TOTAL_DELTA:
case CellType.DELTA: {
// $FlowFixMe
const deltaCell = (cell: BT$DeltaCellType);
return (
);
}
case CellType.TOTAL: {
switch (cell && cell.type) {
case CellType.ARTIFACT:
return (
);
case CellType.DELTA: {
// $FlowFixMe
const deltaCell = (cell: BT$DeltaCellType);
return (
);
}
case CellType.TOTAL: {
// $FlowFixMe
test('shows formatted bytes and delta in the title', () => {
const wrapper = shallow(
);
expect(wrapper.find(Td).prop('title')).toEqual('-134 bytes (-50.0%)');
});
test('is a formatted value', () => {
const wrapper = shallow(
);
expect(
wrapper
.find(Text)
.children()
.text()
).toEqual('4.2 KiB');
});
const mapBodyCell = (cell: ACell | TCell | TDCell | DCell, i: number): React.ReactElement | void => {
switch (cell.type) {
case CellType.ARTIFACT: {
return (
);
}
case CellType.DELTA:
return ;
case CellType.TOTAL:
return ;
}
};