Skip to content

Commit

Permalink
fix(auto-effects-test): fix a store placement issue in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solkimicreb committed Mar 30, 2020
1 parent b3c26f5 commit 8f0c308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/autoEffect.no-hook.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ describe('AutoEffect edge cases and errors', () => {
: 'should not'
} throw an error`, () => {
const someEffect = () => {};
const person = store({ name: 'Bob' });

const MyComp = view(() => {
const person = store({ name: 'Bob' });
autoEffect(() => someEffect(person.name));
return <div>{person.name}</div>;
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/autoEffect.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
// eslint-disable-next-line import/no-unresolved
} from 'react-easy-state';

describe.only('autoEffect', () => {
describe('autoEffect', () => {
afterEach(cleanup);

test('should auto run global effects', () => {
Expand Down

0 comments on commit 8f0c308

Please sign in to comment.