Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
samcooke98 committed Nov 10, 2019
1 parent 9d5ea6a commit 5fb7b0c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -55,7 +55,7 @@ describe('useSubscription', () => {
it('handles memo components', () => {
const observable = createBehaviorSubject('start');

function Child({value = 'default', id }) {
function Child({value = 'default', id}) {
React.useEffect(
() => {
Scheduler.unstable_yieldValue(`Commit(${id}): ${value}`);
Expand All @@ -79,7 +79,7 @@ describe('useSubscription', () => {
[observable],
),
);
return <Child value={value} id={id}/>;
return <Child value={value} id={id} />;
}
// Change this to see the test pass
const isMemo = true;
Expand All @@ -91,7 +91,7 @@ describe('useSubscription', () => {
setCount = _setCount;
return (
<>
<Subbed id="Not Memod"/>
<Subbed id="Not Memod" />
<MemodSubbed id="Memo" />
<Child value={count} id="Child" />
</>
Expand Down Expand Up @@ -126,7 +126,7 @@ describe('useSubscription', () => {
expect(Scheduler).toFlushAndYieldThrough([
// Subbed Memo Renders with original value
'Render(Not Memod): start',
...(!isMemo ? [ 'Render(Memo): start'] : []),
...(!isMemo ? ['Render(Memo): start'] : []),
'Render(Child): 123',
'Commit(Child): 123',
]);
Expand Down

0 comments on commit 5fb7b0c

Please sign in to comment.