Skip to content

Commit

Permalink
Tests: Reformat code [refactor]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 3, 2020
1 parent e370674 commit 150e229
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,13 @@ describe('Init', () => {
});

describe('determines `[IS_LAZY]`', () => {
it(
'from `[GET_IS_LAZY]()` if `[IS_LAZY]` undefined',
async () => {
const route = new ReactRoute();
route[REACT_ROOT] = route;
route[GET_IS_LAZY] = () => false;
await route.init();
expect(route[IS_LAZY]).toBe(false);
}
);
it('from `[GET_IS_LAZY]()` if `[IS_LAZY]` undefined', async () => {
const route = new ReactRoute();
route[REACT_ROOT] = route;
route[GET_IS_LAZY] = () => false;
await route.init();
expect(route[IS_LAZY]).toBe(false);
});

it('does not call `[GET_IS_LAZY]()` if `[IS_LAZY]` defined', async () => {
const route = new ReactRoute();
Expand Down

0 comments on commit 150e229

Please sign in to comment.