Skip to content

Commit 58398d1

Browse files
committed
Add failing test
1 parent eeaaada commit 58398d1

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

server/src/__tests__/server.test.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,29 @@ describe('server', () => {
563563
expect(result && 'length' in result && result.length).toBeGreaterThanOrEqual(50)
564564
})
565565

566+
it('responds to onCompletion with empty list when the following characters is not an empty string or whitespace', async () => {
567+
const { connection } = await initializeServer()
568+
569+
const onCompletion = connection.onCompletion.mock.calls[0][0]
570+
571+
const result = await onCompletion(
572+
{
573+
textDocument: {
574+
uri: FIXTURE_URI.INSTALL,
575+
},
576+
position: {
577+
// {
578+
line: 271,
579+
character: 21,
580+
},
581+
},
582+
{} as any,
583+
{} as any,
584+
)
585+
586+
expect(result).toEqual([])
587+
})
588+
566589
it('responds to onCompletion with empty list when word is a comment', async () => {
567590
const { connection } = await initializeServer()
568591

testing/fixtures/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,5 @@ if [ $ret -ne 0 ]; then
268268
echo "It failed" >&2
269269
fi
270270
exit $ret
271+
272+
iverilog -i wave.vpp *{}.v

0 commit comments

Comments
 (0)