-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clone settings so they can't be mutated, add test
- Loading branch information
1 parent
fe1046e
commit 496e458
Showing
3 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,6 @@ const { | |
postInstanceTestsResponse, | ||
} = require('../support/helpers/serverStub') | ||
const { expectRunsToHaveCorrectTimings } = require('../support/helpers/resultsUtils') | ||
const postRunResponseWithWarnings = jsonSchemas.getExample('postRunResponse')('2.2.0') | ||
const postRunResponse = _.assign({}, postRunResponseWithWarnings, { warnings: [] }) | ||
const postRunInstanceResponse = jsonSchemas.getExample('postRunInstanceResponse')('2.1.0') | ||
|
||
const e2ePath = Fixtures.projectPath('e2e') | ||
const outputPath = path.join(e2ePath, 'output.json') | ||
|
@@ -691,14 +688,13 @@ describe('e2e record', () => { | |
}) | ||
|
||
describe('create run 500', () => { | ||
const routes = [{ | ||
method: 'post', | ||
url: '/runs', | ||
req: '[email protected]', | ||
res (req, res) { | ||
return res.sendStatus(500) | ||
const routes = createRoutes({ | ||
postRun: { | ||
res (req, res) { | ||
return res.sendStatus(500) | ||
}, | ||
}, | ||
}] | ||
}) | ||
|
||
setupStubbedServer(routes) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters