From bfb1271ac0bca9e21a8a4efab296b61a52676962 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 5 Aug 2020 10:49:18 -0500 Subject: [PATCH] chore(test): remove legacy context option --- src/declarations/stencil-private.ts | 2 -- src/testing/spec-page.ts | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/declarations/stencil-private.ts b/src/declarations/stencil-private.ts index 80dcd905df7..7f4e9106aed 100644 --- a/src/declarations/stencil-private.ts +++ b/src/declarations/stencil-private.ts @@ -2386,8 +2386,6 @@ export interface NewSpecPageOptions { attachStyles?: boolean; strictBuild?: boolean; - /** @deprecated */ - context?: { [key: string]: any }; } export interface TypesImportData { diff --git a/src/testing/spec-page.ts b/src/testing/spec-page.ts index c659d978dac..1acc0e84a9c 100644 --- a/src/testing/spec-page.ts +++ b/src/testing/spec-page.ts @@ -6,7 +6,6 @@ import { getHostRef, insertVdomAnnotations, registerComponents, - registerContext, registerModule, renderVdom, resetPlatform, @@ -31,8 +30,6 @@ export async function newSpecPage(opts: NewSpecPageOptions): Promise { resetPlatform(); resetBuildConditionals(BUILD); - registerContext(opts.context); - if (Array.isArray(opts.components)) { registerComponents(opts.components); }