We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14fff4 commit 03df725Copy full SHA for 03df725
test/lib/flow_doctrine.js
@@ -112,6 +112,22 @@ test('flowDoctrine', function (t) {
112
name: 'undefined'
113
}, 'undefined');
114
115
+ t.deepEqual(flowDoctrine(toComment(
116
+ "/** add */function add(a: \"value\") { }"
117
+ ).context.ast.value.params[0].typeAnnotation.typeAnnotation),
118
+ {
119
+ type: 'StringLiteral',
120
+ name: 'value'
121
+ }, 'StringLiteral');
122
+
123
124
+ "/** add */function add(a: 1) { }"
125
126
127
+ type: 'NumberLiteral',
128
+ name: '1'
129
+ }, 'NumberLiteral');
130
131
t.end();
132
});
133
/* eslint-enable */
0 commit comments