@@ -42,13 +42,11 @@ test('transform kit.alias to resolve.alias', () => {
4242test ( 'error_for_missing_config - simple single level config' , ( ) => {
4343 expect ( ( ) => error_for_missing_config ( 'feature' , 'kit.adapter' , 'true' ) ) . toThrow (
4444 dedent `
45- To enable \` feature\` , add the following to your \`svelte.config.js\`:
45+ To enable feature, add the following to your \`svelte.config.js\`:
4646
47- \`\`\`js
4847 kit: {
4948 adapter: true
5049 }
51- \`\`\`
5250 `
5351 ) ;
5452} ) ;
@@ -62,27 +60,24 @@ test('error_for_missing_config - nested config', () => {
6260 )
6361 ) . toThrow (
6462 dedent `
65- To enable \` instrumentation.server.js\` , add the following to your \`svelte.config.js\`:
63+ To enable instrumentation.server.js, add the following to your \`svelte.config.js\`:
6664
67- \`\`\`js
6865 kit: {
6966 experimental: {
7067 instrumentation: {
7168 server: true
7269 }
7370 }
7471 }
75- \`\`\`
7672 `
7773 ) ;
7874} ) ;
7975
8076test ( 'error_for_missing_config - deeply nested config' , ( ) => {
8177 expect ( ( ) => error_for_missing_config ( 'deep feature' , 'a.b.c.d.e' , '"value"' ) ) . toThrow (
8278 dedent `
83- To enable \` deep feature\` , add the following to your \`svelte.config.js\`:
79+ To enable deep feature, add the following to your \`svelte.config.js\`:
8480
85- \`\`\`js
8681 a: {
8782 b: {
8883 c: {
@@ -92,21 +87,18 @@ test('error_for_missing_config - deeply nested config', () => {
9287 }
9388 }
9489 }
95- \`\`\`
9690 `
9791 ) ;
9892} ) ;
9993
10094test ( 'error_for_missing_config - two level config' , ( ) => {
10195 expect ( ( ) => error_for_missing_config ( 'some feature' , 'kit.someFeature' , 'false' ) ) . toThrow (
10296 dedent `
103- To enable \` some feature\` , add the following to your \`svelte.config.js\`:
97+ To enable some feature, add the following to your \`svelte.config.js\`:
10498
105- \`\`\`js
10699 kit: {
107100 someFeature: false
108101 }
109- \`\`\`
110102 `
111103 ) ;
112104} ) ;
@@ -116,13 +108,11 @@ test('error_for_missing_config - handles special characters in feature name', ()
116108 error_for_missing_config ( 'special-feature.js' , 'kit.special' , '{ enabled: true }' )
117109 ) . toThrow (
118110 dedent `
119- To enable \` special-feature.js\` , add the following to your \`svelte.config.js\`:
111+ To enable special-feature.js, add the following to your \`svelte.config.js\`:
120112
121- \`\`\`js
122113 kit: {
123114 special: { enabled: true }
124115 }
125- \`\`\`
126116 `
127117 ) ;
128118} ) ;
0 commit comments