From a55f38b12746571e209af976b7d46da051cf2d66 Mon Sep 17 00:00:00 2001 From: Arshabh Kumar Agarwal Date: Wed, 22 Mar 2017 09:54:28 +0530 Subject: [PATCH] Changes the throw error for test in super-illegal-non-constructor-call (#5450) --- .../spec/super-illegal-non-constructor-call/options.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json b/packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json index f63d64488d..2ff7004be5 100644 --- a/packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json +++ b/packages/babel-plugin-transform-es2015-classes/test/fixtures/spec/super-illegal-non-constructor-call/options.json @@ -1,3 +1,3 @@ { - "throws": "super() outside of class constructor" + "throws": "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'." }