diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2017-10-29 15:01:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-29 15:01:50 +0100 |
| commit | 731b40ce0f31e64e9bff87e00d7bfbee12138d47 (patch) | |
| tree | 3b072f0518b14bdc6ffd94dacb31532cb4e89558 /web/src/js/__tests__/ducks | |
| parent | b32dff7520b67f6f6a93627363d91d4f30cad956 (diff) | |
| parent | 9d514330cad64e589987b5e539809ae95d14e137 (diff) | |
| download | mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.gz mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.bz2 mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.zip | |
Merge pull request #2608 from mhils/web
[web] minor improvements, move options editor
Diffstat (limited to 'web/src/js/__tests__/ducks')
| -rw-r--r-- | web/src/js/__tests__/ducks/flowsSpec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/src/js/__tests__/ducks/flowsSpec.js b/web/src/js/__tests__/ducks/flowsSpec.js index 5bd866f2..d749d9e1 100644 --- a/web/src/js/__tests__/ducks/flowsSpec.js +++ b/web/src/js/__tests__/ducks/flowsSpec.js @@ -157,7 +157,9 @@ describe('flows actions', () => { file = new window.Blob(['foo'], { type: 'plain/text' }) body.append('file', file) store.dispatch(flowActions.uploadContent(tflow, 'foo', 'foo')) - expect(fetchApi).toBeCalledWith('/flows/1/foo/content', { method: 'POST', body}) + // window.Blob's lastModified is always the current time, + // which causes flaky tests on comparison. + expect(fetchApi).toBeCalledWith('/flows/1/foo/content', { method: 'POST', body: expect.anything()}) }) it('should handle clear action', () => { |
