diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2017-07-27 13:11:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-27 13:11:16 +0200 |
| commit | 357928b0cdfd89e8a7cce8c776bb5eb16a8c4401 (patch) | |
| tree | c8ad6cd0378298f7fe7d8570088c3c5c6951f7eb /web/src/js/__tests__/ducks | |
| parent | 874d0aa25367274c46f6b8ba2a91def66503407e (diff) | |
| parent | 7e5f424c5013a591e71f570b003e34f8e6788869 (diff) | |
| download | mitmproxy-357928b0cdfd89e8a7cce8c776bb5eb16a8c4401.tar.gz mitmproxy-357928b0cdfd89e8a7cce8c776bb5eb16a8c4401.tar.bz2 mitmproxy-357928b0cdfd89e8a7cce8c776bb5eb16a8c4401.zip | |
Merge pull request #2460 from MatthewShao/mitmweb-options
Add default value suggester in mitmweb options
Diffstat (limited to 'web/src/js/__tests__/ducks')
| -rw-r--r-- | web/src/js/__tests__/ducks/optionsSpec.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/src/js/__tests__/ducks/optionsSpec.js b/web/src/js/__tests__/ducks/optionsSpec.js index 0925fcc1..9178c14e 100644 --- a/web/src/js/__tests__/ducks/optionsSpec.js +++ b/web/src/js/__tests__/ducks/optionsSpec.js @@ -49,3 +49,18 @@ describe('sendUpdate', () => { ]) }) }) + +describe('save', () => { + + it('should dump options', () => { + global.fetch = jest.fn() + store.dispatch(OptionsActions.save()) + expect(fetch).toBeCalledWith( + '/options/save?_xsrf=undefined', + { + credentials: "same-origin", + method: "POST" + } + ) + }) +}) |
