Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Nov 28, 2024
1 parent e681b6b commit b92e16b
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions packages/atomic-router/src/__tests__/barrier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@ import { barrierChain } from '../barrier';

describe('barrierChain', () => {
// TODO: enable back and debug why it fails
test.skip(
'route opens immediately if barrier is not active',
async () => {
const $active = createStore(false);
const barrier = createBarrier({ active: $active });
test.skip('route opens immediately if barrier is not active', async () => {
const $active = createStore(false);
const barrier = createBarrier({ active: $active });

const route = createRoute();
const chained = chainRoute({ route, ...barrierChain(barrier) });
const route = createRoute();
const chained = chainRoute({ route, ...barrierChain(barrier) });

const scope = fork();
const scope = fork();

await allSettled(route.open, { scope });
await allSettled(route.open, { scope });

expect(scope.getState(chained.$isOpened)).toBe(true);
}
);
expect(scope.getState(chained.$isOpened)).toBe(true);
});

test.concurrent('route opens only after barrier is deactived', async () => {
const $active = createStore(false);
Expand Down

0 comments on commit b92e16b

Please sign in to comment.