fix: guard unpolyfilled react router stuff from node 16

This commit is contained in:
cha0s 2024-02-17 10:06:36 -06:00
parent 65416c7156
commit e99fb0edf8
4 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import {expect} from 'chai';
import {withWeb} from '@flecks/headless/test/helpers/with-web'; import {withWeb} from '@flecks/headless/test/helpers/with-web';
it('allows custom routes', withWeb( it('allows custom routes', 'undefined' !== typeof Headers && withWeb(
async ({page, response}) => { async ({page, response}) => {
expect(response) expect(response)
.to.not.be.null; .to.not.be.null;

View File

@ -2,7 +2,7 @@ import {expect} from 'chai';
import {withWeb} from '@flecks/headless/test/helpers/with-web'; import {withWeb} from '@flecks/headless/test/helpers/with-web';
it('implements data router', withWeb( it('implements data router', 'undefined' !== typeof Headers && withWeb(
async ({page, response}) => { async ({page, response}) => {
expect(response) expect(response)
.to.not.be.null; .to.not.be.null;
@ -26,7 +26,7 @@ it('implements data router', withWeb(
}, },
)); ));
it('implements data router with ssr', withWeb( it('implements data router with ssr', 'undefined' !== typeof Headers && withWeb(
async ({page, response}) => { async ({page, response}) => {
expect(response) expect(response)
.to.not.be.null; .to.not.be.null;

View File

@ -2,7 +2,7 @@ import {expect} from 'chai';
import {withWeb} from '@flecks/headless/test/helpers/with-web'; import {withWeb} from '@flecks/headless/test/helpers/with-web';
it('provides default routes', withWeb( it('provides default routes', 'undefined' !== typeof Headers && withWeb(
async ({page, response}) => { async ({page, response}) => {
expect(response) expect(response)
.to.not.be.null; .to.not.be.null;
@ -17,7 +17,7 @@ it('provides default routes', withWeb(
}, },
)); ));
it('provides default routes with ssr', withWeb( it('provides default routes with ssr', 'undefined' !== typeof Headers && withWeb(
async ({page, response}) => { async ({page, response}) => {
expect(response) expect(response)
.to.not.be.null; .to.not.be.null;

View File

@ -2,7 +2,7 @@ import {expect} from 'chai';
import {withWeb} from '@flecks/headless/test/helpers/with-web'; import {withWeb} from '@flecks/headless/test/helpers/with-web';
it('allows lazy routes', withWeb( it('allows lazy routes', 'undefined' !== typeof Headers && withWeb(
async ({page, response}) => { async ({page, response}) => {
expect(response) expect(response)
.to.not.be.null; .to.not.be.null;