Skip to content

Commit ac90516

Browse files
committed
Fix typo
1 parent 5d9ca5d commit ac90516

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

tests/smoke/extensions/install.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ for (const extUrl of extUrls) {
9898
Deno.removeSync("_extensions", { recursive: true });
9999
return Promise.resolve();
100100
},
101-
santize: {
101+
sanitize: {
102102
resources: false,
103103
},
104104
},

tests/test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface TestContext {
5050
cwd?: () => string;
5151

5252
// Control of underlying sanitizer
53-
santize?: { resources?: boolean; ops?: boolean; exit?: boolean };
53+
sanitize?: { resources?: boolean; ops?: boolean; exit?: boolean };
5454

5555
// control if test is ran or skipped
5656
ignore?: boolean;
@@ -86,11 +86,11 @@ export function mergeTestContexts(baseContext: TestContext, additionalContext?:
8686
},
8787
// override cwd if provided
8888
cwd: additionalContext.cwd || baseContext.cwd,
89-
// merge santize options
90-
santize: {
91-
resources: additionalContext.santize?.resources ?? baseContext.santize?.resources,
92-
ops: additionalContext.santize?.ops ?? baseContext.santize?.ops,
93-
exit: additionalContext.santize?.exit ?? baseContext.santize?.exit,
89+
// merge sanitize options
90+
sanitize: {
91+
resources: additionalContext.sanitize?.resources ?? baseContext.sanitize?.resources,
92+
ops: additionalContext.sanitize?.ops ?? baseContext.sanitize?.ops,
93+
exit: additionalContext.sanitize?.exit ?? baseContext.sanitize?.exit,
9494
},
9595
// override ignore if provided
9696
ignore: additionalContext.ignore ?? baseContext.ignore,
@@ -165,9 +165,9 @@ export function test(test: TestDescriptor) {
165165
? `[${test.type}] > ${test.name} (${test.context.name})`
166166
: `[${test.type}] > ${test.name}`;
167167

168-
const sanitizeResources = test.context.santize?.resources;
169-
const sanitizeOps = test.context.santize?.ops;
170-
const sanitizeExit = test.context.santize?.exit;
168+
const sanitizeResources = test.context.sanitize?.resources;
169+
const sanitizeOps = test.context.sanitize?.ops;
170+
const sanitizeExit = test.context.sanitize?.exit;
171171
const ignore = test.context.ignore;
172172
const userSession = !runningInCI();
173173

0 commit comments

Comments
 (0)