aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-07-27 11:22:02 +0800
committerMatthew Shao <me@matshao.com>2017-07-27 11:22:02 +0800
commit7e5f424c5013a591e71f570b003e34f8e6788869 (patch)
treeec3b19c13af67ccb41b4e272297c08f172df53a8 /web/src/js/__tests__
parent4ab5574e1849ffe85bd9d06d0beb7a40b31a3845 (diff)
downloadmitmproxy-7e5f424c5013a591e71f570b003e34f8e6788869.tar.gz
mitmproxy-7e5f424c5013a591e71f570b003e34f8e6788869.tar.bz2
mitmproxy-7e5f424c5013a591e71f570b003e34f8e6788869.zip
[web] Minor fix for frontend and tests.
Diffstat (limited to 'web/src/js/__tests__')
-rw-r--r--web/src/js/__tests__/ducks/optionsSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/src/js/__tests__/ducks/optionsSpec.js b/web/src/js/__tests__/ducks/optionsSpec.js
index a0d11f9c..9178c14e 100644
--- a/web/src/js/__tests__/ducks/optionsSpec.js
+++ b/web/src/js/__tests__/ducks/optionsSpec.js
@@ -50,13 +50,13 @@ describe('sendUpdate', () => {
})
})
-describe('dump', () => {
+describe('save', () => {
it('should dump options', () => {
global.fetch = jest.fn()
- store.dispatch(OptionsActions.dump())
+ store.dispatch(OptionsActions.save())
expect(fetch).toBeCalledWith(
- '/options/dump?_xsrf=undefined',
+ '/options/save?_xsrf=undefined',
{
credentials: "same-origin",
method: "POST"