fix: guard unpolyfilled react router stuff from node 16
This commit is contained in:
parent
65416c7156
commit
e99fb0edf8
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user