You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/__tests__/server.test.ts
+55-14Lines changed: 55 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -109,10 +109,21 @@ describe('server', () => {
109
109
)
110
110
111
111
expect(result).toBeDefined()
112
-
expect(result).toEqual({
113
-
contents:
114
-
'### Function: **hello_world** - *defined on line 8*\n\n```txt\nthis is a comment\ndescribing the function\nhello_world\nthis function takes two arguments\n```',
115
-
})
112
+
expect(result).toMatchInlineSnapshot(`
113
+
Object {
114
+
"contents": Object {
115
+
"kind": "markdown",
116
+
"value": "Function: **hello_world** - *defined on line 8*
117
+
118
+
\`\`\`txt
119
+
this is a comment
120
+
describing the function
121
+
hello_world
122
+
this function takes two arguments
123
+
\`\`\`",
124
+
},
125
+
}
126
+
`)
116
127
})
117
128
118
129
it('responds to onDefinition',async()=>{
@@ -491,7 +502,10 @@ describe('server', () => {
491
502
"name": "BLUE",
492
503
"type": 3,
493
504
},
494
-
"documentation": "### Variable: **BLUE** - *defined in extension.inc*",
505
+
"documentation": Object {
506
+
"kind": "markdown",
507
+
"value": "Variable: **BLUE** - *defined in extension.inc*",
508
+
},
495
509
"kind": 6,
496
510
"label": "BLUE",
497
511
},
@@ -520,11 +534,14 @@ describe('server', () => {
520
534
"name": "add_a_user",
521
535
"type": 3,
522
536
},
523
-
"documentation": "### Function: **add_a_user** - *defined in issue101.sh*
537
+
"documentation": Object {
538
+
"kind": "markdown",
539
+
"value": "Function: **add_a_user** - *defined in issue101.sh*
524
540
525
541
\`\`\`txt
526
542
Helper function to add a user
527
543
\`\`\`",
544
+
},
528
545
"kind": 3,
529
546
"label": "add_a_user",
530
547
},
@@ -607,7 +624,10 @@ describe('server', () => {
607
624
"name": "RED",
608
625
"type": 3,
609
626
},
610
-
"documentation": "### Variable: **RED** - *defined in extension.inc*",
627
+
"documentation": Object {
628
+
"kind": "markdown",
629
+
"value": "Variable: **RED** - *defined in extension.inc*",
630
+
},
611
631
"kind": 6,
612
632
"label": "RED",
613
633
},
@@ -616,7 +636,10 @@ describe('server', () => {
616
636
"name": "GREEN",
617
637
"type": 3,
618
638
},
619
-
"documentation": "### Variable: **GREEN** - *defined in extension.inc*",
639
+
"documentation": Object {
640
+
"kind": "markdown",
641
+
"value": "Variable: **GREEN** - *defined in extension.inc*",
642
+
},
620
643
"kind": 6,
621
644
"label": "GREEN",
622
645
},
@@ -625,7 +648,10 @@ describe('server', () => {
625
648
"name": "BLUE",
626
649
"type": 3,
627
650
},
628
-
"documentation": "### Variable: **BLUE** - *defined in extension.inc*",
651
+
"documentation": Object {
652
+
"kind": "markdown",
653
+
"value": "Variable: **BLUE** - *defined in extension.inc*",
654
+
},
629
655
"kind": 6,
630
656
"label": "BLUE",
631
657
},
@@ -634,7 +660,10 @@ describe('server', () => {
634
660
"name": "RESET",
635
661
"type": 3,
636
662
},
637
-
"documentation": "### Variable: **RESET** - *defined in extension.inc*",
663
+
"documentation": Object {
664
+
"kind": "markdown",
665
+
"value": "Variable: **RESET** - *defined in extension.inc*",
666
+
},
638
667
"kind": 6,
639
668
"label": "RESET",
640
669
},
@@ -643,7 +672,10 @@ describe('server', () => {
643
672
"name": "USER",
644
673
"type": 3,
645
674
},
646
-
"documentation": "### Variable: **USER** - *defined in issue101.sh*",
675
+
"documentation": Object {
676
+
"kind": "markdown",
677
+
"value": "Variable: **USER** - *defined in issue101.sh*",
678
+
},
647
679
"kind": 6,
648
680
"label": "USER",
649
681
},
@@ -652,7 +684,10 @@ describe('server', () => {
652
684
"name": "PASSWORD",
653
685
"type": 3,
654
686
},
655
-
"documentation": "### Variable: **PASSWORD** - *defined in issue101.sh*",
687
+
"documentation": Object {
688
+
"kind": "markdown",
689
+
"value": "Variable: **PASSWORD** - *defined in issue101.sh*",
690
+
},
656
691
"kind": 6,
657
692
"label": "PASSWORD",
658
693
},
@@ -661,11 +696,14 @@ describe('server', () => {
661
696
"name": "COMMENTS",
662
697
"type": 3,
663
698
},
664
-
"documentation": "### Variable: **COMMENTS** - *defined in issue101.sh*
699
+
"documentation": Object {
700
+
"kind": "markdown",
701
+
"value": "Variable: **COMMENTS** - *defined in issue101.sh*
665
702
666
703
\`\`\`txt
667
704
Having shifted twice, the rest is now comments ...
668
705
\`\`\`",
706
+
},
669
707
"kind": 6,
670
708
"label": "COMMENTS",
671
709
},
@@ -674,7 +712,10 @@ describe('server', () => {
674
712
"name": "tag",
675
713
"type": 3,
676
714
},
677
-
"documentation": "### Variable: **tag** - *defined in ../../scripts/tag-release.inc*",
715
+
"documentation": Object {
716
+
"kind": "markdown",
717
+
"value": "Variable: **tag** - *defined in ../../scripts/tag-release.inc*",
0 commit comments