From 34c9feaca1be5f3f4547bff20b7956650740febe Mon Sep 17 00:00:00 2001 From: Richard Button Date: Wed, 15 Jan 2020 16:32:51 +0000 Subject: [PATCH] updated error message --- .../recordAndTupleSyntaxType/invalid-option/options.json | 2 +- .../recordAndTupleSyntaxType/missing-option/options.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/invalid-option/options.json b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/invalid-option/options.json index de8136323f23..8c3f43216d7a 100644 --- a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/invalid-option/options.json +++ b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/invalid-option/options.json @@ -1,5 +1,5 @@ { "plugins": [["recordAndTuple", { "syntaxType": "hash" }]], "recordAndTupleSyntaxType": "invalid", - "throws": "The \"recordAndTupleSyntaxType\" generator option must be either \"bar\" or \"hash\" (\"invalid\" received)" + "throws": "The \"recordAndTupleSyntaxType\" generator option must be \"bar\" or \"hash\" (\"invalid\" received)" } diff --git a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/missing-option/options.json b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/missing-option/options.json index 5aa85d03899f..09a736a1a286 100644 --- a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/missing-option/options.json +++ b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/missing-option/options.json @@ -1,4 +1,4 @@ { "plugins": [["recordAndTuple", { "syntaxType": "hash" }]], - "throws": "The \"recordAndTupleSyntaxType\" generator option must be either \"bar\" or \"hash\" (undefined received)" + "throws": "The \"recordAndTupleSyntaxType\" generator option must be \"bar\" or \"hash\" (undefined received)" }