aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/ducks/tutils.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-05-22 10:00:35 +0200
committerGitHub <noreply@github.com>2017-05-22 10:00:35 +0200
commit5626c384ab61dc0cd08efe70e6416e63f8221847 (patch)
tree844cd1d5305f6bcc830381f04923fd08ad83f8ac /web/src/js/__tests__/ducks/tutils.js
parentaf0ad494348d0f2d773232b5913d5c86787e39f5 (diff)
parent546bac68d471d23bee70b549a5179a775fded4fc (diff)
downloadmitmproxy-5626c384ab61dc0cd08efe70e6416e63f8221847.tar.gz
mitmproxy-5626c384ab61dc0cd08efe70e6416e63f8221847.tar.bz2
mitmproxy-5626c384ab61dc0cd08efe70e6416e63f8221847.zip
Merge pull request #2342 from MatthewShao/jest-dev
[web] Add _flow.js for component tests.
Diffstat (limited to 'web/src/js/__tests__/ducks/tutils.js')
-rw-r--r--web/src/js/__tests__/ducks/tutils.js27
1 files changed, 1 insertions, 26 deletions
diff --git a/web/src/js/__tests__/ducks/tutils.js b/web/src/js/__tests__/ducks/tutils.js
index f140222d..211b61e3 100644
--- a/web/src/js/__tests__/ducks/tutils.js
+++ b/web/src/js/__tests__/ducks/tutils.js
@@ -8,29 +8,4 @@ export function createStore(parts) {
)
}
-export function TFlow(intercepted=false, marked=false, modified=false) {
- return {
- intercepted ,
- marked,
- modified,
- id: "foo",
- request: {
- scheme: 'http',
- is_replay: true,
- method: 'GET',
- contentLength: 100
- },
- response: {
- status_code: 200,
- headers: [["Content-Type", 'text/html']],
- timestamp_end: 200
- },
- error: {
- msg: ''
- },
- server_conn: {
- timestamp_start: 100
- },
- type: 'http'
- }
-}
+export { default as TFlow } from './_tflow'