Open wongJonathan opened 7 years ago
Hi I've been trying to mock some APIGatway Methods but for some reason it still seems to be going through to AWS.
My code: In my index.js:
index.js
clearDomainName() { return this.apigateway.deleteDomainName({domainName: this.givenDomainName}).promise(); }
In my index.test.js:
index.test.js
it('Delete the domain name', function () { AWS.mock('APIGateway', 'deleteDomainName', testDomainData); plugin.clearDomainName().then(function (data) { console.log(data); done(); }).catch(done); });
Error that I receive:
UnknownEndpoint: Inaccessible host: `apigateway.us-moon-1.amazonaws.com'. This service may not be available in the `us-moon-1' region.
Showing that the method was not mocked and things are going through to aws.
Am I doing something wrong or is this function not supported?
Thanks for the help!
Any help? The only thing I can think would be on my part would be spelling and I'm pretty sure I spelled it right otherwise it would give me an error.
Hi I've been trying to mock some APIGatway Methods but for some reason it still seems to be going through to AWS.
My code: In my
index.js
:In my
index.test.js
:Error that I receive:
Showing that the method was not mocked and things are going through to aws.
Am I doing something wrong or is this function not supported?
Thanks for the help!