Skip to content

Commit 100f1ab

Browse files
author
Nathan Turinski
committed
Fix the tests
1 parent 71064e6 commit 100f1ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/createFunction/FunctionTesterBase.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export abstract class FunctionTesterBase implements Disposable {
5959
public async dispose(): Promise<void> {
6060
await runWithTestActionContext('testCreateFunctionDispose', async context => {
6161
const testApi = getCachedTestApi();
62-
const templates: FunctionTemplateBase[] = await testApi.commands.getFunctionTemplates(context, this.projectPath, this.language, undefined, this.version, TemplateFilter.Verified, undefined, this.source);
62+
const allTemplates: FunctionTemplateBase[] = await testApi.commands.getFunctionTemplates(context, this.projectPath, this.language, undefined, this.version, TemplateFilter.Verified, undefined, this.source);
63+
// getFunctionTemplates now returns all templates with templateFilter set as a category.
64+
// Filter to Verified here to match the tested subset.
65+
const templates = allTemplates.filter(t => t.templateFilter === TemplateFilter.Verified);
6366
assert.deepEqual(this.testedFunctions.sort(), templates.map(t => t.name).sort(), 'Not all "Verified" templates were tested');
6467
});
6568
}

0 commit comments

Comments
 (0)