Skip to content

Commit 93dfca5

Browse files
committed
Add readonly to doc unit-test
1 parent 69ecf7d commit 93dfca5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/webdoc-parser/test/parse-ts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Example {
1212
/**
1313
* Field description
1414
*/
15-
protected field: boolean = true;
15+
protected readonly field: boolean = true;
1616
}
1717
`,
1818
path: ".ts",
@@ -27,6 +27,7 @@ class Example {
2727
expect(fieldDoc.access).to.equal("protected");
2828
expect(fieldDoc.dataType && fieldDoc.dataType[0]).to.equal("boolean");
2929
expect(fieldDoc.defaultValue).to.equal(true);
30+
expect(fieldDoc.readonly).to.equal(true);
3031

3132
// TODO: Fix this. No space should be there (added/not-fixed b/c this was
3233
// in a PR for different issue)

0 commit comments

Comments
 (0)