Skip to content

Commit ca42865

Browse files
committed
format
1 parent ac300c2 commit ca42865

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

web/src/components/drawer/record/__tests__/record-panel.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ describe('<RecordPanel />', () => {
5252
fields: {
5353
...mocks.record.fields,
5454
IcmpType: 8,
55-
IcmpCode: 0,
55+
IcmpCode: 0
5656
}
57-
}
57+
};
5858
const wrapper = shallow(<RecordPanel {...mocks} record={flowWithICMP} />);
5959
expect(wrapper.find(RecordPanel)).toBeTruthy();
6060
expect(wrapper.find({ 'data-test-id': 'drawer-field-IcmpType' })).toHaveLength(1);

web/src/components/drawer/record/record-field.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ import { dateFormatter, getFormattedDate, timeMSFormatter, utcDateTimeFormatter
1010
import { dnsCodesNames, dnsErrorsValues, getDNSErrorDescription, getDNSRcodeDescription } from '../../../utils/dns';
1111
import { getDSCPDocUrl, getDSCPServiceClassDescription, getDSCPServiceClassName } from '../../../utils/dscp';
1212
import { formatDurationAboveMillisecond, formatDurationAboveNanosecond } from '../../../utils/duration';
13-
import {
14-
getICMPCode,
15-
getICMPDocUrl,
16-
getICMPType,
17-
icmpAllTypesValues,
18-
isValidICMPProto
19-
} from '../../../utils/icmp';
13+
import { getICMPCode, getICMPDocUrl, getICMPType, icmpAllTypesValues, isValidICMPProto } from '../../../utils/icmp';
2014
import { dropCausesNames, getDropCauseDescription, getDropCauseDocUrl } from '../../../utils/pkt-drop';
2115
import { formatPort } from '../../../utils/port';
2216
import { formatProtocol, getProtocolDocUrl } from '../../../utils/protocol';

0 commit comments

Comments
 (0)