Skip to content

Commit

Permalink
test: update code action titles
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 committed Nov 24, 2024
1 parent 7c3e657 commit 1dbcb8d
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
Expand Up @@ -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'")
})
})

Expand Down

0 comments on commit 1dbcb8d

Please sign in to comment.