Skip to content

Commit

Permalink
chore: remove hover in broken project test
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 committed Jun 3, 2024
1 parent 2b4db8d commit 106b904
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/src/hover.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import * as assert from 'assert'
import * as vscode from 'vscode'
import { getTestDocUri, activate, open, typeText } from './util'
import { getTestDocUri, activate, open } from './util'

suite('Hover info', () => {
const docUri = getTestDocUri('src/Main.flix')
Expand Down Expand Up @@ -79,16 +79,4 @@ suite('Hover info', () => {
'Computes the area of the given shape using pattern matching and basic arithmetic.',
)
})

test('Hovering on area()-call in broken project should still show def', async () => {
// Create a syntax error
// `def area(s: Shape): Int32` -> `def area(s: Shape)asdf: Int32`
const editor = vscode.window.activeTextEditor
editor.selection = new vscode.Selection(new vscode.Position(14, 18), new vscode.Position(14, 18))
await typeText('asdf')

const position = new vscode.Position(10, 12)
await testHoverAtPosition(position, '(Information may not be current)')
await testHoverAtPosition(position, 'def area(s: Shape): Int32')
})
})

0 comments on commit 106b904

Please sign in to comment.