Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Sep 17, 2019
1 parent 7efcb2f commit 9a17ac2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 7 additions & 5 deletions packages/server/__snapshots__/2_config_spec.coffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ exports['e2e config passes 1'] = `
✓ .arch
✓ .browser
✓ .spec
.env
✓ doesn't die on <script> tags
5 passing
6 passing
(Results)
┌──────────────────────────────────────────┐
│ Tests: 5
│ Passing: 5
│ Tests: 6
│ Passing: 6
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
Expand All @@ -56,9 +58,9 @@ exports['e2e config passes 1'] = `
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ config_passing_spec.coffee XX:XX 5 5 - - - │
│ ✔ config_passing_spec.coffee XX:XX 6 6 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
All specs passed! XX:XX 5 5 - - -
All specs passed! XX:XX 6 6 - - -
`
Expand Down
8 changes: 6 additions & 2 deletions packages/server/test/integration/http_requests_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ describe "Routes", ->
@rp("http://localhost:9999/__")
.then (res) ->
expect(res.statusCode).to.eq(200)
expect(res.body).to.include("version")
expect(res.body).to.include(pkg.version)

base64Config = /Runner\.start\(.*, "(.*)"\)/.exec(res.body)[1]
configStr = Buffer.from(base64Config, 'base64').toString()

expect(configStr).to.include("version")
expect(configStr).to.include(pkg.version)

context "GET /__cypress/runner/*", ->
beforeEach ->
Expand Down

0 comments on commit 9a17ac2

Please sign in to comment.