Skip to content

Commit

Permalink
bug(amplify-cli):resource-test file location issue resolved (aws-ampl…
Browse files Browse the repository at this point in the history
…ify#7712)

* bug(amplify-cli):resource-test file location issue resolved

* Changed  to '' for standard practice

* style(amplify-cli): Moved path import to top of the file
  • Loading branch information
studpeps authored and akshbhu committed Aug 15, 2021
1 parent b61eb33 commit 0dcdf71
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as path from 'path';
import { removeResource, forceRemoveResource } from '../../../extensions/amplify-helpers/remove-resource';
import { stateManager, exitOnNextTick, ResourceDoesNotExistError, MissingParametersError } from 'amplify-cli-core';
import * as inquirer from 'inquirer';
Expand Down Expand Up @@ -215,7 +216,7 @@ describe('remove-resource', () => {
},
},
});
expect(context.filesystem.remove).toBeCalledWith('backendDirPath/function/lambda1');
expect(context.filesystem.remove).toBeCalledWith(path.join('backendDirPath', 'function', 'lambda1'));
expect(removeResourceParameters).toBeCalledWith(context, 'function', 'lambda1');
expect(updateBackendConfigAfterResourceRemove).toBeCalledWith('function', 'lambda1');
expect(context.print.success).toBeCalledWith('Successfully removed resource');
Expand Down

0 comments on commit 0dcdf71

Please sign in to comment.