File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/webdoc-parser/test Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ describe("@webdoc/parser.LanguageIntegration{@lang ts}", function() {
88 it ( "should parse classes correctly" , function ( ) {
99 let symtree = buildSymbolTree ( `
1010 class ClassName {
11- private initProperty: number;
11+ private initProperty: number = 11 ;
1212
1313 constructor() {
1414 /**
@@ -48,6 +48,7 @@ describe("@webdoc/parser.LanguageIntegration{@lang ts}", function() {
4848 expect ( symbolInitProperty . meta . dataType ) . to . not . equal ( undefined ) ;
4949 expect ( symbolInitProperty . meta . dataType [ 0 ] ) . to . equal ( "number" ) ;
5050 expect ( symbolInitProperty . meta . access ) . to . equal ( "private" ) ;
51+ expect ( symbolInitProperty . meta . defaultValue ) . to . equal ( 11 ) ;
5152 expect ( symbolInitProperty . comment ) . to . not . equal ( "" ) ;
5253 } ) ;
5354
You can’t perform that action at this time.
0 commit comments