Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bpernick committed Aug 25, 2020
1 parent 2362d17 commit 62144f7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/react-devtools-shared/src/__tests__/utils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
REACT_SUSPENSE_LIST_TYPE as SuspenseList,
REACT_STRICT_MODE_TYPE as StrictMode,
} from 'shared/ReactSymbols';
import { createElement } from 'react/src/ReactElement'
import {createElement} from 'react/src/ReactElement';

describe('utils', () => {
describe('getDisplayName', () => {
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('utils', () => {
it('should return correct display name for an element with function type', () => {
function FauxComponent() {}
FauxComponent.displayName = 'OverrideDisplayName';
const element = createElement(FauxComponent)
const element = createElement(FauxComponent);
expect(getDisplayNameForReactElement(element)).toEqual(
'OverrideDisplayName',
);
Expand All @@ -60,9 +60,7 @@ describe('utils', () => {
});
it('should return correct display name for an element with a type of SuspenseList', () => {
const element = createElement(SuspenseList);
expect(getDisplayNameForReactElement(element)).toEqual(
'SuspenseList',
);
expect(getDisplayNameForReactElement(element)).toEqual('SuspenseList');
});
it('should return NotImplementedInDevtools for an element with invalid symbol type', () => {
const element = createElement(Symbol('foo'));
Expand All @@ -71,7 +69,7 @@ describe('utils', () => {
);
});
it('should return NotImplementedInDevtools for an element with invalid type', () => {
const element = createElement(true)
const element = createElement(true);
expect(getDisplayNameForReactElement(element)).toEqual(
'NotImplementedInDevtools',
);
Expand Down

0 comments on commit 62144f7

Please sign in to comment.