From ea07020d8ad3bd0afd85693e43a028668d7f1a28 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 13 Jan 2018 20:06:16 -0500 Subject: [PATCH] fix expected error position, tweak expected message to include suggested alternative --- .../errors.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json b/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json index c5ad38b51d..2b6a36ecd1 100644 --- a/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json +++ b/test/validator/samples/properties-computed-must-be-valid-function-names/errors.json @@ -1,8 +1,8 @@ [{ - "message": "Computed property name \"hours-hyphen\" is invalid. Character '-' at position 14 is illegal in function identifiers", + "message": "Computed property name 'hours-hyphen' is invalid — must be a valid identifier such as hours_hyphen", "loc": { "line": 14, - "column": 6 + "column": 3 }, - "pos": 172 + "pos": 150 }]