Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 26, 2023
1 parent f11ee94 commit ee1922e
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ macro_rules! doc_test {
.map(|d| format!("{}:{}:{} {:?}", d.location.filename, d.location.line, d.location.col, d.kind))
.collect::<Vec<_>>();
let expected_diagnostics: Vec<&str> = $diagnostics;
assert_eq!(actual_diagnostics, expected_diagnostics);
assert_eq!(actual_diagnostics, expected_diagnostics, "Diagnostics match.");
}
};
}
Expand Down Expand Up @@ -1957,7 +1957,8 @@ class Foo {}
const obj = { Foo }
export class Bar extends obj.Foo {}
"#;
"#,
false;
[{
"kind": "class",
"name": "Bar",
Expand All @@ -1978,7 +1979,36 @@ export class Bar extends obj.Foo {}
"typeParams": [],
"superTypeParams": []
}
}]
}, {
"kind": "variable",
"name": "obj",
"location": {
"filename": "file:///test.ts",
"line": 3,
"col": 6,
},
"declarationKind": "private",
"variableDef": {
"tsType": {
"repr": "",
"kind": "typeLiteral",
"typeLiteral": {
"methods": [],
"properties": [{
"name": "Foo",
"params": [],
"computed": false,
"optional": false,
"tsType": null,
"typeParams": [],
}],
"callSignatures": [],
"indexSignatures": [],
},
},
"kind": "const",
},
}], vec!["file:///test.ts:3:6 PrivateTypeRef"]
);

json_test!(export_class_ignore,
Expand Down

0 comments on commit ee1922e

Please sign in to comment.