Skip to content

Commit

Permalink
snapshot tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro100 committed May 23, 2024
1 parent d83338c commit 78b84d7
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions gbfs-validator/__test__/__snapshots__/gbfs.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`initialization should correctly initialize validator per default 1`] = `
GBFS {
"auth": {},
"gotOptions": {
"headers": {
"auth": Object {},
"gotOptions": Object {
"headers": Object {
"user-agent": "MobilityData GBFS-Validator/1.1.1 (Node 16.0.1)",
},
},
"options": {
"options": Object {
"docked": false,
"freefloating": false,
"version": null,
Expand All @@ -19,13 +19,13 @@ GBFS {

exports[`initialization should correctly initialize validator with options 1`] = `
GBFS {
"auth": {},
"gotOptions": {
"headers": {
"auth": Object {},
"gotOptions": Object {
"headers": Object {
"user-agent": "MobilityData GBFS-Validator/1.1.1 (Node 16.0.1)",
},
},
"options": {
"options": Object {
"docked": true,
"freefloating": true,
"version": "v2.1",
Expand All @@ -38,19 +38,19 @@ exports[`initialization should throw an error without url 1`] = `"Missing URL"`;

exports[`initialization with auth should correctly initialize with \`basic_auth\` 1`] = `
GBFS {
"auth": {
"basicAuth": {
"auth": Object {
"basicAuth": Object {
"password": "mypassword",
"user": "myuser",
},
"type": "basic_auth",
},
"gotOptions": {
"headers": {
"gotOptions": Object {
"headers": Object {
"Authorization": "basic bXl1c2VyOm15cGFzc3dvcmQ=",
},
},
"options": {
"options": Object {
"docked": false,
"freefloating": false,
"version": null,
Expand All @@ -61,18 +61,18 @@ GBFS {

exports[`initialization with auth should correctly initialize with \`bearer_token\` 1`] = `
GBFS {
"auth": {
"bearerToken": {
"auth": Object {
"bearerToken": Object {
"token": "mytoken",
},
"type": "bearer_token",
},
"gotOptions": {
"headers": {
"gotOptions": Object {
"headers": Object {
"Authorization": "Bearer mytoken",
},
},
"options": {
"options": Object {
"docked": false,
"freefloating": false,
"version": null,
Expand All @@ -83,32 +83,32 @@ GBFS {

exports[`initialization with auth should correctly initialize with multiple \`headers\` 1`] = `
GBFS {
"auth": {
"headers": [
{
"auth": Object {
"headers": Array [
Object {
"key": "mykey",
"value": "myvalue",
},
{
Object {
"key": "mysecondkey",
"value": "mysecondvalue",
},
{
Object {
"key": "mythirdkey",
"value": "mythirdvalue",
},
],
"type": "headers",
},
"gotOptions": {
"headers": {
"gotOptions": Object {
"headers": Object {
"mykey": "myvalue",
"mysecondkey": "mysecondvalue",
"mythirdkey": "mythirdvalue",
"user-agent": "MobilityData GBFS-Validator/1.1.1 (Node 16.0.1)",
},
},
"options": {
"options": Object {
"docked": false,
"freefloating": false,
"version": null,
Expand All @@ -119,22 +119,22 @@ GBFS {

exports[`initialization with auth should correctly initialize with one \`headers\` 1`] = `
GBFS {
"auth": {
"headers": [
{
"auth": Object {
"headers": Array [
Object {
"key": "mykey",
"value": "myvalue",
},
],
"type": "headers",
},
"gotOptions": {
"headers": {
"gotOptions": Object {
"headers": Object {
"mykey": "myvalue",
"user-agent": "MobilityData GBFS-Validator/1.1.1 (Node 16.0.1)",
},
},
"options": {
"options": Object {
"docked": false,
"freefloating": false,
"version": null,
Expand Down

0 comments on commit 78b84d7

Please sign in to comment.