Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit d67ee6c

Browse files
authored
Fix: Typo in TSExportAssignment node type (#367)
1 parent 65b019b commit d67ee6c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/ast-node-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module.exports = {
112112
TSDeclareKeyword: "TSDeclareKeyword",
113113
TSEnumDeclaration: "TSEnumDeclaration",
114114
TSEnumMember: "TSEnumMember",
115-
TSExportAssignment: "TSExportAssigment",
115+
TSExportAssignment: "TSExportAssignment",
116116
TSIndexSignature: "TSIndexSignature",
117117
TSInterfaceBody: "TSInterfaceBody",
118118
TSInterfaceDeclaration: "TSInterfaceDeclaration",

tests/ast-alignment/spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ const fixturePatternsToTest = [
427427
{
428428
pattern: "typescript/basics/export-named-enum.src.ts",
429429
config: { babylonParserOptions: { sourceType: "module" } }
430+
},
431+
{
432+
pattern: "typescript/basics/export-assignment.src.ts",
433+
config: { babylonParserOptions: { sourceType: "module" } }
430434
}
431435

432436
/**
@@ -488,7 +492,6 @@ const fixturePatternsToTest = [
488492
// "typescript/basics/class-with-type-parameter.src.ts",
489493
// "typescript/basics/declare-function.src.ts",
490494
// "typescript/basics/destructuring-assignment.src.ts",
491-
// "typescript/basics/export-assignment.src.ts",
492495
// "typescript/basics/export-default-class-with-generic.src.ts",
493496
// "typescript/basics/export-default-class-with-multiple-generics.src.ts",
494497
// "typescript/basics/export-named-class-with-generic.src.ts",

tests/lib/__snapshots__/typescript.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20900,7 +20900,7 @@ Object {
2090020900
0,
2090120901
13,
2090220902
],
20903-
"type": "TSExportAssigment",
20903+
"type": "TSExportAssignment",
2090420904
},
2090520905
],
2090620906
"loc": Object {

0 commit comments

Comments
 (0)