Skip to content

Commit

Permalink
fixup! SAM CLI detection: change to "Workspace" scope
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmk3 committed Aug 14, 2020
1 parent 6712bf3 commit 28628a1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/test/shared/sam/cli/samCliConfiguration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,6 @@ describe('SamCliConfiguration', () => {
assert.strictEqual(timesCalled, 1)
})

it('location provider detects a file', async () => {
const fakeCliLocation = path.join(tempFolder, 'fakeSamCli')

const samCliConfig: SamCliConfiguration = new DefaultSamCliConfiguration(settingsConfiguration, {
getLocation: async (): Promise<string | undefined> => {
return Promise.resolve(fakeCliLocation)
},
})

await samCliConfig.initialize()

assert.strictEqual(samCliConfig.getSamCliLocation(), fakeCliLocation)
})

it('location provider does not detect a file', async () => {
const samCliConfig: SamCliConfiguration = new DefaultSamCliConfiguration(settingsConfiguration, {
getLocation: async (): Promise<string | undefined> => {
Expand Down

0 comments on commit 28628a1

Please sign in to comment.