Skip to content

Commit 12cdae3

Browse files
committed
update tests
1 parent cd59a8c commit 12cdae3

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

tools/tests/src/expected/DocExtraction2.res.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"id": "DocExtraction2.InnerModule",
2222
"name": "InnerModule",
2323
"kind": "module",
24+
"docstrings": [],
2425
"items": [
2526
{
2627
"id": "DocExtraction2.InnerModule.t",

tools/tests/src/expected/DocExtraction2.resi.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"id": "DocExtraction2.InnerModule",
2222
"name": "InnerModule",
2323
"kind": "module",
24+
"docstrings": [],
2425
"items": [
2526
{
2627
"id": "DocExtraction2.InnerModule.t",

tools/tests/src/expected/DocExtractionRes.res.json

+19-2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"id": "DocExtractionRes.SomeInnerModule",
5151
"name": "SomeInnerModule",
5252
"kind": "module",
53+
"docstrings": ["Another module level docstring here."],
5354
"items": [
5455
{
5556
"id": "DocExtractionRes.SomeInnerModule.status",
@@ -97,6 +98,7 @@
9798
"id": "DocExtractionRes.AnotherModule",
9899
"name": "AnotherModule",
99100
"kind": "module",
101+
"docstrings": ["Mighty fine module here too!"],
100102
"items": [
101103
{
102104
"id": "DocExtractionRes.LinkedModule",
@@ -123,7 +125,7 @@
123125
"id": "DocExtractionRes.AnotherModule.someVariantWithInlineRecords",
124126
"kind": "type",
125127
"name": "someVariantWithInlineRecords",
126-
"signature": "type someVariantWithInlineRecords =\n | SomeStuff({offline: bool})",
128+
"signature": "type someVariantWithInlineRecords =\n | SomeStuff({offline: bool, online?: bool})",
127129
"docstrings": ["Trying how it looks with an inline record in a variant."],
128130
"detail":
129131
{
@@ -132,7 +134,21 @@
132134
{
133135
"name": "SomeStuff",
134136
"docstrings": ["This has inline records..."],
135-
"signature": "SomeStuff"
137+
"signature": "SomeStuff({offline: bool, online?: bool})",
138+
"payload": {
139+
"kind": "inlineRecord",
140+
"fields": [{
141+
"name": "offline",
142+
"optional": false,
143+
"docstrings": [],
144+
"signature": "bool"
145+
}, {
146+
"name": "online",
147+
"optional": true,
148+
"docstrings": ["Is the user online?"],
149+
"signature": "option<bool>"
150+
}]
151+
}
136152
}]
137153
}
138154
},
@@ -148,6 +164,7 @@
148164
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported",
149165
"name": "ModuleWithThingsThatShouldNotBeExported",
150166
"kind": "module",
167+
"docstrings": [],
151168
"items": [
152169
{
153170
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",

0 commit comments

Comments
 (0)