From 77e7054730cffaa0431fe2f1b404f680b9bcdfa9 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Thu, 30 Jan 2020 07:55:54 -0500 Subject: [PATCH] add tests --- .../samples/attribute-unique-binding-error/error.json | 10 ++++++++++ .../attribute-unique-binding-error/input.svelte | 1 + .../attribute-unique-shorthand-error/error.json | 10 ++++++++++ .../attribute-unique-shorthand-error/input.svelte | 1 + 4 files changed, 22 insertions(+) create mode 100644 test/parser/samples/attribute-unique-binding-error/error.json create mode 100644 test/parser/samples/attribute-unique-binding-error/input.svelte create mode 100644 test/parser/samples/attribute-unique-shorthand-error/error.json create mode 100644 test/parser/samples/attribute-unique-shorthand-error/input.svelte diff --git a/test/parser/samples/attribute-unique-binding-error/error.json b/test/parser/samples/attribute-unique-binding-error/error.json new file mode 100644 index 0000000000..dd14572149 --- /dev/null +++ b/test/parser/samples/attribute-unique-binding-error/error.json @@ -0,0 +1,10 @@ +{ + "code": "duplicate-attribute", + "message": "Attributes need to be unique", + "start": { + "line": 1, + "column": 17, + "character": 17 + }, + "pos": 17 +} diff --git a/test/parser/samples/attribute-unique-binding-error/input.svelte b/test/parser/samples/attribute-unique-binding-error/input.svelte new file mode 100644 index 0000000000..78f854bad6 --- /dev/null +++ b/test/parser/samples/attribute-unique-binding-error/input.svelte @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/parser/samples/attribute-unique-shorthand-error/error.json b/test/parser/samples/attribute-unique-shorthand-error/error.json new file mode 100644 index 0000000000..dd14572149 --- /dev/null +++ b/test/parser/samples/attribute-unique-shorthand-error/error.json @@ -0,0 +1,10 @@ +{ + "code": "duplicate-attribute", + "message": "Attributes need to be unique", + "start": { + "line": 1, + "column": 17, + "character": 17 + }, + "pos": 17 +} diff --git a/test/parser/samples/attribute-unique-shorthand-error/input.svelte b/test/parser/samples/attribute-unique-shorthand-error/input.svelte new file mode 100644 index 0000000000..d486eab558 --- /dev/null +++ b/test/parser/samples/attribute-unique-shorthand-error/input.svelte @@ -0,0 +1 @@ +
\ No newline at end of file