Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-ShaoHua committed Nov 15, 2024
1 parent 6dd448e commit d281665
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import assert from 'assert'
import * as vscode from 'vscode'
import * as sinon from 'sinon'
import * as crossFile from 'aws-core-vscode/codewhisperer'
import { TestFolder } from 'aws-core-vscode/test'
import { TestFolder, assertTabCount } from 'aws-core-vscode/test'
import { FeatureConfigProvider } from 'aws-core-vscode/codewhisperer'
import { toTextEditor } from 'aws-core-vscode/test'

Expand Down Expand Up @@ -39,6 +39,8 @@ describe('supplementalContextUtil', function () {
preview: false,
})

await assertTabCount(4)

const actual = await crossFile.fetchSupplementalContext(editor, fakeCancellationToken)
assert.ok(actual?.supplementalContextItems.length === 3)
})
Expand All @@ -53,6 +55,8 @@ describe('supplementalContextUtil', function () {
preview: false,
})

await assertTabCount(4)

const actual = await crossFile.fetchSupplementalContext(editor, fakeCancellationToken)
assert.ok(actual?.supplementalContextItems.length === 0)
})
Expand Down

0 comments on commit d281665

Please sign in to comment.