From 08205f378b86a7332bff86f9b85da07dbe50d298 Mon Sep 17 00:00:00 2001 From: James Henry Date: Sat, 18 Mar 2017 16:08:38 +0000 Subject: [PATCH] Fix: Updated broken class-with-optional-properties test result --- .../class-with-optional-properties.result.js | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/tests/fixtures/typescript/basics/class-with-optional-properties.result.js b/tests/fixtures/typescript/basics/class-with-optional-properties.result.js index 0a6d6f8..54b3544 100644 --- a/tests/fixtures/typescript/basics/class-with-optional-properties.result.js +++ b/tests/fixtures/typescript/basics/class-with-optional-properties.result.js @@ -42,6 +42,7 @@ module.exports = { ], "static": false, "type": "ClassProperty", + "typeAnnotation": null, "value": null }, { @@ -83,6 +84,40 @@ module.exports = { ], "static": false, "type": "ClassProperty", + "typeAnnotation": { + "loc": { + "end": { + "column": 15, + "line": 3 + }, + "start": { + "column": 9, + "line": 3 + } + }, + "range": [ + 29, + 35 + ], + "type": "TypeAnnotation", + "typeAnnotation": { + "loc": { + "end": { + "column": 15, + "line": 3 + }, + "start": { + "column": 9, + "line": 3 + } + }, + "range": [ + 29, + 35 + ], + "type": "TSStringKeyword" + } + }, "value": null }, { @@ -124,6 +159,40 @@ module.exports = { ], "static": false, "type": "ClassProperty", + "typeAnnotation": { + "loc": { + "end": { + "column": 23, + "line": 4 + }, + "start": { + "column": 17, + "line": 4 + } + }, + "range": [ + 54, + 60 + ], + "type": "TypeAnnotation", + "typeAnnotation": { + "loc": { + "end": { + "column": 23, + "line": 4 + }, + "start": { + "column": 17, + "line": 4 + } + }, + "range": [ + 54, + 60 + ], + "type": "TSStringKeyword" + } + }, "value": null } ],