Skip to content

Commit

Permalink
test: update code action titles (#462)
Browse files Browse the repository at this point in the history
sockmaster27 authored Nov 24, 2024

Verified

This commit was signed with the committer’s verified signature.
aduh95 Antoine du Hamel
1 parent 7c3e657 commit 0fb5233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/src/codeActions.test.ts
Original file line number Diff line number Diff line change
@@ -53,21 +53,21 @@ suite('Code actions', () => {
assert.notStrictEqual(
action,
undefined,
`Code action '${expectedTitle}' not found in. Instead found: ${stringify(r)}`,
`Code action "${expectedTitle}" not found in. Instead found: ${stringify(r)}`,
)
}

suite('Undefined names', () => {
test('Should propose using Date.earlierDate def', async () => {
await testCodeAction(dateDocUri, new vscode.Position(43, 4), 'use Date.earlierDate')
await testCodeAction(dateDocUri, new vscode.Position(43, 4), "use 'Date.earlierDate'")
})

test('Should propose using Date.Month enum', async () => {
await testCodeAction(dateDocUri, new vscode.Position(2, 25), 'use Date.Month')
await testCodeAction(dateDocUri, new vscode.Position(2, 25), "use 'Date.Month'")
})

test('Should propose introducing new Month enum', async () => {
await testCodeAction(dateDocUri, new vscode.Position(2, 25), 'Introduce new enum Month')
await testCodeAction(dateDocUri, new vscode.Position(2, 25), "Create enum 'Month'")
})
})

0 comments on commit 0fb5233

Please sign in to comment.