aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/ducks/tutils.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-07-05 16:25:38 +0200
committerGitHub <noreply@github.com>2017-07-05 16:25:38 +0200
commit062a58f848c80b3a5f499d407396998ba253202c (patch)
tree29af51e332bb8d103a786d2f85dcf31f25516ebf /web/src/js/__tests__/ducks/tutils.js
parent55a20b819e1220024a66bd11275a5c3511f7d295 (diff)
parent37fea267c1d171fb661736b96db62943e7b49791 (diff)
downloadmitmproxy-062a58f848c80b3a5f499d407396998ba253202c.tar.gz
mitmproxy-062a58f848c80b3a5f499d407396998ba253202c.tar.bz2
mitmproxy-062a58f848c80b3a5f499d407396998ba253202c.zip
Merge pull request #2423 from MatthewShao/mitmweb-options
[web] [WIP] Mitmweb options editor content
Diffstat (limited to 'web/src/js/__tests__/ducks/tutils.js')
-rw-r--r--web/src/js/__tests__/ducks/tutils.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/web/src/js/__tests__/ducks/tutils.js b/web/src/js/__tests__/ducks/tutils.js
index 9b92e676..a3e9c168 100644
--- a/web/src/js/__tests__/ducks/tutils.js
+++ b/web/src/js/__tests__/ducks/tutils.js
@@ -42,6 +42,36 @@ export function TStore(){
anticache: true,
anticomp: false
},
+ options: {
+ booleanOption: {
+ choices: null,
+ default: false,
+ help: "foo",
+ type: "bool",
+ value: false
+ },
+ strOption: {
+ choices: null,
+ default: null,
+ help: "foo",
+ type: "str",
+ value: "str content"
+ },
+ intOption: {
+ choices: null,
+ default: 0,
+ help: "foo",
+ type: "int",
+ value: 1
+ },
+ choiceOption: {
+ choices: ['a', 'b', 'c'],
+ default: 'a',
+ help: "foo",
+ type: "str",
+ value: "b"
+ },
+ },
flows: {
selected: ["d91165be-ca1f-4612-88a9-c0f8696f3e29"],
byId: {"d91165be-ca1f-4612-88a9-c0f8696f3e29": tflow},