mirror of
https://github.com/cypress-io/cypress.git
synced 2025-12-30 19:19:53 -06:00
remove string-to-stream dep (getStream isn't called anywhere) (#4619)
* remove string-to-stream dep (getStream isn't called anywhere) I don’t see ‘getStream’ being called anywhere in the code, this is the only method that uses string-to-stream * trigger status check
This commit is contained in:
committed by
Zach Bloomquist
parent
2823783ff7
commit
c13e94a520
@@ -1,6 +1,5 @@
|
||||
_ = require("lodash")
|
||||
mime = require("mime")
|
||||
str = require("string-to-stream")
|
||||
Promise = require("bluebird")
|
||||
fixture = require("../fixture")
|
||||
|
||||
@@ -79,13 +78,6 @@ module.exports = {
|
||||
.then (bytes) ->
|
||||
{data: bytes, encoding: encoding}
|
||||
|
||||
getStream: (resp) ->
|
||||
if fixturesRe.test(resp)
|
||||
@_get(resp).then (contents) ->
|
||||
str(contents)
|
||||
else
|
||||
str(resp)
|
||||
|
||||
getResponse: (resp, config) ->
|
||||
if fixturesRe.test(resp)
|
||||
@_get(resp, config)
|
||||
|
||||
@@ -179,7 +179,6 @@
|
||||
"shell-env": "3.0.0",
|
||||
"signal-exit": "3.0.2",
|
||||
"sinon": "5.1.1",
|
||||
"string-to-stream": "1.1.1",
|
||||
"strip-ansi": "3.0.1",
|
||||
"supports-color": "6.1.0",
|
||||
"syntax-error": "1.4.0",
|
||||
|
||||
Reference in New Issue
Block a user