aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/ducks/tutils.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/__tests__/ducks/tutils.js')
-rw-r--r--web/src/js/__tests__/ducks/tutils.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/web/src/js/__tests__/ducks/tutils.js b/web/src/js/__tests__/ducks/tutils.js
index 6ae7f080..70992bcb 100644
--- a/web/src/js/__tests__/ducks/tutils.js
+++ b/web/src/js/__tests__/ducks/tutils.js
@@ -7,3 +7,30 @@ export function createStore(parts) {
applyMiddleware(...[thunk])
)
}
+
+export function TFlow(intercepted=false, marked=false, modified=false) {
+ return {
+ intercepted : intercepted,
+ marked : marked,
+ modified: 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'
+ }
+}