From c1c2c7b153fb2e21311d7b82759efe05e4a1e679 Mon Sep 17 00:00:00 2001 From: baseballyama Date: Mon, 29 May 2023 14:02:43 +0900 Subject: [PATCH] add if statement test --- .../valid-context-access/invalid/case07-errors.yaml | 3 +++ .../valid-context-access/invalid/case07-input.svelte | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/fixtures/rules/valid-context-access/invalid/case07-errors.yaml create mode 100644 tests/fixtures/rules/valid-context-access/invalid/case07-input.svelte diff --git a/tests/fixtures/rules/valid-context-access/invalid/case07-errors.yaml b/tests/fixtures/rules/valid-context-access/invalid/case07-errors.yaml new file mode 100644 index 000000000..5702a7bed --- /dev/null +++ b/tests/fixtures/rules/valid-context-access/invalid/case07-errors.yaml @@ -0,0 +1,3 @@ +- message: Do not call hasContext except during component initialization. + line: 5 + column: 9 diff --git a/tests/fixtures/rules/valid-context-access/invalid/case07-input.svelte b/tests/fixtures/rules/valid-context-access/invalid/case07-input.svelte new file mode 100644 index 000000000..5484f2dc9 --- /dev/null +++ b/tests/fixtures/rules/valid-context-access/invalid/case07-input.svelte @@ -0,0 +1,9 @@ +