Skip to content

Commit 191056e

Browse files
authored
test(format_type): Test formatting of string enums (#721)
Fixes #662
1 parent 5b48290 commit 191056e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/format_type.js

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ test('formatType', function(t) {
3434
'number!',
3535
'[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)!'
3636
],
37+
["('pre'|'post')", '(`"pre"` \\| `"post"`)'],
38+
["'pre'|'post'", '(`"pre"` \\| `"post"`)'],
3739
[
3840
'function(string, boolean)',
3941
'function ([string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String), [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean))'

0 commit comments

Comments
 (0)