File tree Expand file tree Collapse file tree
packages/faustwp-core/tests/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ describe('withFaust', () => {
2929 ) ;
3030 const redirects = await finalConfig . redirects ! ( ) ;
3131 expect ( redirects ) . toMatchInlineSnapshot ( `
32- Array [
33- Object {
32+ [
33+ {
3434 "destination": "/preview",
35- "has": Array [
36- Object {
35+ "has": [
36+ {
3737 "key": "preview",
3838 "type": "query",
3939 "value": "true",
@@ -42,10 +42,10 @@ describe('withFaust', () => {
4242 "permanent": false,
4343 "source": "/((?!preview).*)",
4444 },
45- Object {
45+ {
4646 "destination": "/preview",
47- "has": Array [
48- Object {
47+ "has": [
48+ {
4949 "key": "preview",
5050 "type": "query",
5151 "value": "true",
@@ -64,11 +64,11 @@ describe('withFaust', () => {
6464 } ) ;
6565 const redirects = await finalConfig . redirects ! ( ) ;
6666 expect ( redirects ) . toMatchInlineSnapshot ( `
67- Array [
68- Object {
67+ [
68+ {
6969 "destination": "/demo",
70- "has": Array [
71- Object {
70+ "has": [
71+ {
7272 "key": "preview",
7373 "type": "query",
7474 "value": "true",
@@ -77,10 +77,10 @@ describe('withFaust', () => {
7777 "permanent": false,
7878 "source": "/((?!demo).*)",
7979 },
80- Object {
80+ {
8181 "destination": "/preview",
82- "has": Array [
83- Object {
82+ "has": [
83+ {
8484 "key": "preview",
8585 "type": "query",
8686 "value": "true",
@@ -89,10 +89,10 @@ describe('withFaust', () => {
8989 "permanent": false,
9090 "source": "/((?!preview).*)",
9191 },
92- Object {
92+ {
9393 "destination": "/preview",
94- "has": Array [
95- Object {
94+ "has": [
95+ {
9696 "key": "preview",
9797 "type": "query",
9898 "value": "true",
You can’t perform that action at this time.
0 commit comments