mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Improve var name
This commit is contained in:
parent
c849a844b5
commit
7fd729a7ce
@ -52,10 +52,10 @@ describe('AWS - API Gateway Websocket Integration Test', function() {
|
||||
describe('Minimal Setup', () => {
|
||||
it('should expose an accessible websocket endpoint', async () => {
|
||||
const result = await CF.describeStacks({ StackName: stackName }).promise();
|
||||
const endpointOutput = _.find(result.Stacks[0].Outputs, {
|
||||
const webSocketServerUrl = _.find(result.Stacks[0].Outputs, {
|
||||
OutputKey: 'ServiceEndpointWebsocket',
|
||||
}).OutputValue;
|
||||
expect(endpointOutput).to.match(/wss:\/\/.+\.execute-api\..+\.amazonaws\.com.+/);
|
||||
expect(webSocketServerUrl).to.match(/wss:\/\/.+\.execute-api\..+\.amazonaws\.com.+/);
|
||||
});
|
||||
|
||||
// NOTE: this test should be at the very end because we're using an external REST API here
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user