From cd66657f347ce132957a296c7dd7435b581c62c0 Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Sat, 12 Aug 2017 14:10:19 +0900 Subject: [PATCH] Update outdated test fixture --- .../constructor-collision-ignores-types/expected.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js b/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js index 18cbcb0e7e..7973ee68a0 100644 --- a/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js +++ b/packages/babel-plugin-transform-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types/expected.js @@ -1,7 +1,16 @@ class C { // Output should not use `_initialiseProps` constructor(T) { - this.y = 0; + Object.defineProperty(this, "x", { + enumerable: true, + writable: true, + value: void 0 + }); + Object.defineProperty(this, "y", { + enumerable: true, + writable: true, + value: 0 + }); } }