diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2017-08-22 00:59:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-22 00:59:51 +0200 |
| commit | 721f7cc92ecdeb03b3f507077e7ef29d48d833ca (patch) | |
| tree | 612d332d0ef2aac63cde2b00b5bef73d3696f61e /web/src/js/__tests__/flow | |
| parent | 7e154171bffbe30c990dd4a522bc65a3a72f2975 (diff) | |
| parent | bf243244ce3b0c88170484444ce340129b984dee (diff) | |
| download | mitmproxy-721f7cc92ecdeb03b3f507077e7ef29d48d833ca.tar.gz mitmproxy-721f7cc92ecdeb03b3f507077e7ef29d48d833ca.tar.bz2 mitmproxy-721f7cc92ecdeb03b3f507077e7ef29d48d833ca.zip | |
Merge pull request #2540 from mhils/relatively-static
Make it possible to run static viewer in subdirectories
Diffstat (limited to 'web/src/js/__tests__/flow')
| -rw-r--r-- | web/src/js/__tests__/flow/utilsSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/src/js/__tests__/flow/utilsSpec.js b/web/src/js/__tests__/flow/utilsSpec.js index 24e65651..dc84001e 100644 --- a/web/src/js/__tests__/flow/utilsSpec.js +++ b/web/src/js/__tests__/flow/utilsSpec.js @@ -25,15 +25,15 @@ describe('MessageUtils', () => { let msg = "foo", view = "bar", flow = { request: msg, id: 1} expect(utils.MessageUtils.getContentURL(flow, msg, view)).toEqual( - "/flows/1/request/content/bar.json" + "./flows/1/request/content/bar.json" ) expect(utils.MessageUtils.getContentURL(flow, msg, '')).toEqual( - "/flows/1/request/_content" + "./flows/1/request/content.data" ) // response flow = {response: msg, id: 2} expect(utils.MessageUtils.getContentURL(flow, msg, view)).toEqual( - "/flows/2/response/content/bar.json" + "./flows/2/response/content/bar.json" ) }) }) |
