Skip to content

Commit

Permalink
test: remove deprecated code action tests (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
magnus-madsen authored Nov 6, 2024
1 parent 79449ee commit 9d706bf
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions test/src/codeActions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,40 +71,6 @@ suite('Code actions', () => {
})
})

suite('Prefix unused with underscore', () => {
test('Should propose prefixing unused local variable with underscore', async () => {
await testCodeAction(mainDocUri, new vscode.Position(4, 8), 'Prefix unused variable with underscore')
})
test('Should propose prefixing unused match-case variable with underscore', async () => {
await testCodeAction(mainDocUri, new vscode.Position(8, 18), 'Prefix unused variable with underscore')
})

test('Should propose prefixing unused def with underscore', async () => {
await testCodeAction(areaDocUri, new vscode.Position(9, 8), 'Prefix unused function with underscore')
})

test('Should propose prefixing unused formal parameter with underscore', async () => {
await testCodeAction(areaDocUri, new vscode.Position(9, 13), 'Prefix unused parameter with underscore')
})

test('Should propose prefixing unused type parameter with underscore', async () => {
await testCodeAction(areaDocUri, new vscode.Position(3, 15), 'Prefix unused type parameter with underscore')
})

test('Should propose prefixing unused effect with underscore', async () => {
await testCodeAction(dividableDocUri, new vscode.Position(8, 8), 'Prefix unused effect with underscore')
})

// See https://github.com/flix/flix/issues/7896
test.skip('Should propose prefixing unused enum with underscore', async () => {
await testCodeAction(areaDocUri, new vscode.Position(3, 9), 'Prefix unused enum with underscore')
})

test('Should propose prefixing unused case with underscore', async () => {
await testCodeAction(areaDocUri, new vscode.Position(5, 13), 'Prefix unused case with underscore')
})
})

suite('Missing trait instances', () => {
// TODO: See https://github.com/flix/flix/issues/7906
})
Expand Down

0 comments on commit 9d706bf

Please sign in to comment.