Skip to content

Commit 1713cb5

Browse files
committed
fix unit tests
1 parent 6e9866b commit 1713cb5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

packages/core/utils/src/common/__tests__/define-config.spec.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ describe("defineConfig", function () {
117117
},
118118
"user": {
119119
"options": {
120+
"jwt_options": undefined,
121+
"jwt_public_key": undefined,
120122
"jwt_secret": "supersecret",
121123
},
122124
"resolve": "@medusajs/medusa/user",
@@ -132,6 +134,7 @@ describe("defineConfig", function () {
132134
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
133135
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
134136
"cookieSecret": "supersecret",
137+
"jwtPublicKey": undefined,
135138
"jwtSecret": "supersecret",
136139
"restrictedFields": {
137140
"store": [
@@ -277,6 +280,8 @@ describe("defineConfig", function () {
277280
},
278281
"user": {
279282
"options": {
283+
"jwt_options": undefined,
284+
"jwt_public_key": undefined,
280285
"jwt_secret": "supersecret",
281286
},
282287
"resolve": "@medusajs/medusa/user",
@@ -292,6 +297,7 @@ describe("defineConfig", function () {
292297
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
293298
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
294299
"cookieSecret": "supersecret",
300+
"jwtPublicKey": undefined,
295301
"jwtSecret": "supersecret",
296302
"restrictedFields": {
297303
"store": [
@@ -445,6 +451,8 @@ describe("defineConfig", function () {
445451
},
446452
"user": {
447453
"options": {
454+
"jwt_options": undefined,
455+
"jwt_public_key": undefined,
448456
"jwt_secret": "supersecret",
449457
},
450458
"resolve": "@medusajs/medusa/user",
@@ -460,6 +468,7 @@ describe("defineConfig", function () {
460468
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
461469
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
462470
"cookieSecret": "supersecret",
471+
"jwtPublicKey": undefined,
463472
"jwtSecret": "supersecret",
464473
"restrictedFields": {
465474
"store": [
@@ -614,6 +623,8 @@ describe("defineConfig", function () {
614623
},
615624
"user": {
616625
"options": {
626+
"jwt_options": undefined,
627+
"jwt_public_key": undefined,
617628
"jwt_secret": "supersecret",
618629
},
619630
"resolve": "@medusajs/medusa/user",
@@ -629,6 +640,7 @@ describe("defineConfig", function () {
629640
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
630641
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
631642
"cookieSecret": "supersecret",
643+
"jwtPublicKey": undefined,
632644
"jwtSecret": "supersecret",
633645
"restrictedFields": {
634646
"store": [
@@ -771,6 +783,8 @@ describe("defineConfig", function () {
771783
},
772784
"user": {
773785
"options": {
786+
"jwt_options": undefined,
787+
"jwt_public_key": undefined,
774788
"jwt_secret": "supersecret",
775789
},
776790
"resolve": "@medusajs/medusa/user",
@@ -786,6 +800,7 @@ describe("defineConfig", function () {
786800
"adminCors": "http://localhost:3000",
787801
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
788802
"cookieSecret": "supersecret",
803+
"jwtPublicKey": undefined,
789804
"jwtSecret": "supersecret",
790805
"restrictedFields": {
791806
"store": [
@@ -931,6 +946,8 @@ describe("defineConfig", function () {
931946
},
932947
"user": {
933948
"options": {
949+
"jwt_options": undefined,
950+
"jwt_public_key": undefined,
934951
"jwt_secret": "supersecret",
935952
},
936953
"resolve": "@medusajs/medusa/user",
@@ -946,6 +963,7 @@ describe("defineConfig", function () {
946963
"adminCors": "http://localhost:3000",
947964
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
948965
"cookieSecret": "supersecret",
966+
"jwtPublicKey": undefined,
949967
"jwtSecret": "supersecret",
950968
"restrictedFields": {
951969
"store": [
@@ -1119,6 +1137,8 @@ describe("defineConfig", function () {
11191137
},
11201138
"user": {
11211139
"options": {
1140+
"jwt_options": undefined,
1141+
"jwt_public_key": undefined,
11221142
"jwt_secret": "supersecret",
11231143
},
11241144
"resolve": "@medusajs/medusa/user",
@@ -1139,6 +1159,7 @@ describe("defineConfig", function () {
11391159
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
11401160
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
11411161
"cookieSecret": "supersecret",
1162+
"jwtPublicKey": undefined,
11421163
"jwtSecret": "supersecret",
11431164
"restrictedFields": {
11441165
"store": [
@@ -1314,6 +1335,8 @@ describe("defineConfig", function () {
13141335
},
13151336
"user": {
13161337
"options": {
1338+
"jwt_options": undefined,
1339+
"jwt_public_key": undefined,
13171340
"jwt_secret": "supersecret",
13181341
},
13191342
"resolve": "@medusajs/medusa/user",
@@ -1334,6 +1357,7 @@ describe("defineConfig", function () {
13341357
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
13351358
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
13361359
"cookieSecret": "supersecret",
1360+
"jwtPublicKey": undefined,
13371361
"jwtSecret": "supersecret",
13381362
"restrictedFields": {
13391363
"store": [
@@ -1525,6 +1549,8 @@ describe("defineConfig", function () {
15251549
},
15261550
"user": {
15271551
"options": {
1552+
"jwt_options": undefined,
1553+
"jwt_public_key": undefined,
15281554
"jwt_secret": "supersecret",
15291555
},
15301556
"resolve": "@medusajs/medusa/user",
@@ -1545,6 +1571,7 @@ describe("defineConfig", function () {
15451571
"adminCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
15461572
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
15471573
"cookieSecret": "supersecret",
1574+
"jwtPublicKey": undefined,
15481575
"jwtSecret": "supersecret",
15491576
"restrictedFields": {
15501577
"store": [
@@ -1708,6 +1735,8 @@ describe("defineConfig", function () {
17081735
},
17091736
"user": {
17101737
"options": {
1738+
"jwt_options": undefined,
1739+
"jwt_public_key": undefined,
17111740
"jwt_secret": "supersecret",
17121741
},
17131742
"resolve": "@medusajs/medusa/user",
@@ -1723,6 +1752,7 @@ describe("defineConfig", function () {
17231752
"adminCors": "http://localhost:3000",
17241753
"authCors": "http://localhost:7000,http://localhost:7001,http://localhost:5173",
17251754
"cookieSecret": "supersecret",
1755+
"jwtPublicKey": undefined,
17261756
"jwtSecret": "supersecret",
17271757
"restrictedFields": {
17281758
"store": [

0 commit comments

Comments
 (0)