@@ -95,7 +95,7 @@ const bindingsConfigMock: Omit<
9595 OBJECT_VAR : {
9696 enterprise : "1701-D" ,
9797 activeDuty : true ,
98- captian : "Picard" ,
98+ captain : "Picard" ,
9999 } , // We can assume the objects will be stringified
100100 "some-other-var" : "some-other-value" ,
101101 } ,
@@ -438,7 +438,7 @@ describe("generate types", () => {
438438 TEST_KV_NAMESPACE: KVNamespace;
439439 SOMETHING: \\"asdasdfasdf\\";
440440 ANOTHER: \\"thing\\";
441- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
441+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
442442 \\"some-other-var\\": \\"some-other-value\\";
443443 DURABLE_DIRECT_EXPORT: DurableObjectNamespace<import(\\"./index\\").DurableDirect>;
444444 DURABLE_RE_EXPORT: DurableObjectNamespace<import(\\"./index\\").DurableReexport>;
@@ -531,7 +531,7 @@ describe("generate types", () => {
531531 TEST_KV_NAMESPACE: KVNamespace;
532532 SOMETHING: \\"asdasdfasdf\\";
533533 ANOTHER: \\"thing\\";
534- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
534+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
535535 \\"some-other-var\\": \\"some-other-value\\";
536536 SECRET: string;
537537 DURABLE_DIRECT_EXPORT: DurableObjectNamespace<import(\\"./index\\").DurableDirect>;
@@ -689,7 +689,7 @@ describe("generate types", () => {
689689 TEST_KV_NAMESPACE: KVNamespace;
690690 SOMETHING: \\"asdasdfasdf\\";
691691 ANOTHER: \\"thing\\";
692- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
692+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
693693 \\"some-other-var\\": \\"some-other-value\\";
694694 SECRET: string;
695695 DURABLE_DIRECT_EXPORT: DurableObjectNamespace<import(\\"./index\\").DurableDirect>;
@@ -771,13 +771,13 @@ describe("generate types", () => {
771771 expect ( fs . readFileSync ( "./worker-configuration.d.ts" , "utf-8" ) )
772772 . toMatchInlineSnapshot ( `
773773 "/* eslint-disable */
774- // Generated by Wrangler by running \`wrangler\` (hash: fc5d598f2fb05668416eab9ae2c2898d )
774+ // Generated by Wrangler by running \`wrangler\` (hash: 9dfd5cc18984b8cc3421a9e726587833 )
775775 // Runtime types generated with workerd@
776776 declare namespace Cloudflare {
777777 interface Env {
778778 SOMETHING: \\"asdasdfasdf\\";
779779 ANOTHER: \\"thing\\";
780- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
780+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
781781 \\"some-other-var\\": \\"some-other-value\\";
782782 }
783783 }
@@ -972,7 +972,7 @@ describe("generate types", () => {
972972 interface Env {
973973 SOMETHING: \\"asdasdfasdf\\";
974974 ANOTHER: \\"thing\\";
975- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
975+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
976976 \\"some-other-var\\": \\"some-other-value\\";
977977 }
978978 }
@@ -1011,7 +1011,7 @@ describe("generate types", () => {
10111011 interface Env {
10121012 SOMETHING: \\"asdasdfasdf\\";
10131013 ANOTHER: \\"thing\\";
1014- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
1014+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
10151015 \\"some-other-var\\": \\"some-other-value\\";
10161016 }
10171017 }
@@ -1038,11 +1038,11 @@ describe("generate types", () => {
10381038 ) ;
10391039
10401040 const localVarsEnvContent = dedent `
1041- # Preceding comment
1042- SECRET_A="A from .dev.vars"
1043- MULTI_LINE_SECRET="A: line 1
1044- line 2"
1045- UNQUOTED_SECRET= unquoted value
1041+ # Preceding comment
1042+ SECRET_A="A from .dev.vars"
1043+ MULTI_LINE_SECRET="A: line 1
1044+ line 2"
1045+ UNQUOTED_SECRET= unquoted value
10461046 ` ;
10471047 fs . writeFileSync ( ".dev.vars" , localVarsEnvContent , "utf8" ) ;
10481048
@@ -1296,7 +1296,7 @@ describe("generate types", () => {
12961296 interface Env {
12971297 SOMETHING: \\"asdasdfasdf\\";
12981298 ANOTHER: \\"thing\\";
1299- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
1299+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
13001300 \\"some-other-var\\": \\"some-other-value\\";
13011301 }
13021302 }
@@ -1393,13 +1393,13 @@ describe("generate types", () => {
13931393 expect ( fs . readFileSync ( "./cloudflare-env.d.ts" , "utf-8" ) )
13941394 . toMatchInlineSnapshot ( `
13951395 "/* eslint-disable */
1396- // Generated by Wrangler by running \`wrangler\` (hash: fc5d598f2fb05668416eab9ae2c2898d )
1396+ // Generated by Wrangler by running \`wrangler\` (hash: 9dfd5cc18984b8cc3421a9e726587833 )
13971397 // Runtime types generated with workerd@
13981398 declare namespace Cloudflare {
13991399 interface Env {
14001400 SOMETHING: \\"asdasdfasdf\\";
14011401 ANOTHER: \\"thing\\";
1402- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
1402+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
14031403 \\"some-other-var\\": \\"some-other-value\\";
14041404 }
14051405 }
@@ -1451,13 +1451,13 @@ describe("generate types", () => {
14511451 expect ( fs . readFileSync ( "./my-cloudflare-env-interface.d.ts" , "utf-8" ) )
14521452 . toMatchInlineSnapshot ( `
14531453 "/* eslint-disable */
1454- // Generated by Wrangler by running \`wrangler\` (hash: 60930eb00599b0244bd44c7fd113844b )
1454+ // Generated by Wrangler by running \`wrangler\` (hash: c4701684dd76f087c31740a06b0cbdb6 )
14551455 // Runtime types generated with workerd@
14561456 declare namespace Cloudflare {
14571457 interface Env {
14581458 SOMETHING: \\"asdasdfasdf\\";
14591459 ANOTHER: \\"thing\\";
1460- OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captian \\":\\"Picard\\"};
1460+ OBJECT_VAR: {\\"enterprise\\":\\"1701-D\\",\\"activeDuty\\":true,\\"captain \\":\\"Picard\\"};
14611461 \\"some-other-var\\": \\"some-other-value\\";
14621462 }
14631463 }
0 commit comments