From c2fc4353f8fa48606d11c563dd7ed6e0013bf348 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Tue, 15 Mar 2022 14:17:19 -0400 Subject: [PATCH] feat: add context to the allowed options (#182) --- .../auto-cleanup-skip.test.js.snap | 2 +- .../__snapshots__/render.test.js.snap | 4 +++ src/__tests__/fixtures/Comp.svelte | 6 +++++ src/__tests__/render.test.js | 14 +++++++++- src/pure.js | 26 ++++++++++++------- 5 files changed, 41 insertions(+), 11 deletions(-) diff --git a/src/__tests__/__snapshots__/auto-cleanup-skip.test.js.snap b/src/__tests__/__snapshots__/auto-cleanup-skip.test.js.snap index f905ed6..8daef3b 100644 --- a/src/__tests__/__snapshots__/auto-cleanup-skip.test.js.snap +++ b/src/__tests__/__snapshots__/auto-cleanup-skip.test.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`auto-cleanup-skip second 1`] = `"

Hello world!

"`; +exports[`auto-cleanup-skip second 1`] = `"

Hello world!

we have undefined
"`; diff --git a/src/__tests__/__snapshots__/render.test.js.snap b/src/__tests__/__snapshots__/render.test.js.snap index 3a921d0..f89402e 100644 --- a/src/__tests__/__snapshots__/render.test.js.snap +++ b/src/__tests__/__snapshots__/render.test.js.snap @@ -11,6 +11,10 @@ exports[`render should accept svelte component options 1`] = ` ! +
+ we have context +
+ diff --git a/src/__tests__/fixtures/Comp.svelte b/src/__tests__/fixtures/Comp.svelte index 3d9c6a5..523d2d3 100644 --- a/src/__tests__/fixtures/Comp.svelte +++ b/src/__tests__/fixtures/Comp.svelte @@ -1,8 +1,12 @@