aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/__tests__/components/FlowView/__snapshots__
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-05-30 21:30:02 +0800
committerMatthew Shao <me@matshao.com>2017-05-30 21:30:02 +0800
commitf2e8e57e1c0cffadc2ed1f2d36e75b03b279b930 (patch)
tree20a31af6dfcd30f21177c8f87ae59c0af6d39f89 /web/src/js/__tests__/components/FlowView/__snapshots__
parenta1ef0b697d5426fecd082a13385fb0ca51febdb2 (diff)
downloadmitmproxy-f2e8e57e1c0cffadc2ed1f2d36e75b03b279b930.tar.gz
mitmproxy-f2e8e57e1c0cffadc2ed1f2d36e75b03b279b930.tar.bz2
mitmproxy-f2e8e57e1c0cffadc2ed1f2d36e75b03b279b930.zip
[web] Add tests for js/components/FlowView/Details.jsx
Diffstat (limited to 'web/src/js/__tests__/components/FlowView/__snapshots__')
-rw-r--r--web/src/js/__tests__/components/FlowView/__snapshots__/DetailsSpec.js.snap274
1 files changed, 274 insertions, 0 deletions
diff --git a/web/src/js/__tests__/components/FlowView/__snapshots__/DetailsSpec.js.snap b/web/src/js/__tests__/components/FlowView/__snapshots__/DetailsSpec.js.snap
new file mode 100644
index 00000000..dcee1895
--- /dev/null
+++ b/web/src/js/__tests__/components/FlowView/__snapshots__/DetailsSpec.js.snap
@@ -0,0 +1,274 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`CertificateInfo Component should render correctly 1`] = `<div />`;
+
+exports[`ConnectionInfo Component should render correctly 1`] = `
+<table
+ className="connection-table"
+>
+ <tbody>
+ <tr>
+ <td>
+ Address:
+ </td>
+ <td>
+ address:22
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <abbr
+ title="TLS Server Name Indication"
+ >
+ TLS SNI:
+ </abbr>
+ </td>
+ <td>
+ address
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`Details Component should render correctly 1`] = `
+<section
+ className="detail"
+>
+ <h4>
+ Client Connection
+ </h4>
+ <table
+ className="connection-table"
+ >
+ <tbody>
+ <tr>
+ <td>
+ Address:
+ </td>
+ <td>
+ address:22
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <abbr
+ title="TLS Server Name Indication"
+ >
+ TLS SNI:
+ </abbr>
+ </td>
+ <td>
+ address
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <h4>
+ Server Connection
+ </h4>
+ <table
+ className="connection-table"
+ >
+ <tbody>
+ <tr>
+ <td>
+ Address:
+ </td>
+ <td>
+ address:22
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <abbr
+ title="TLS Server Name Indication"
+ >
+ TLS SNI:
+ </abbr>
+ </td>
+ <td>
+ address
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div />
+ <div>
+ <h4>
+ Timing
+ </h4>
+ <table
+ className="timing-table"
+ >
+ <tbody>
+ <tr />
+ <tr />
+ <tr>
+ <td>
+ Server conn. initiated
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:01.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Client conn. established
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:01.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Server conn. TCP handshake
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:02.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Client conn. SSL handshake
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:02.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Server conn. SSL handshake
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:03.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ First response byte
+ :
+ </td>
+ <td>
+ 2017-05-21 12:38:32.481
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Response complete
+ :
+ </td>
+ <td>
+ 2017-05-21 12:38:32.481
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</section>
+`;
+
+exports[`TimeStamp Component should render correctly 1`] = `
+<tr>
+ <td>
+ foo
+ :
+ </td>
+ <td>
+ 2017-01-01 00:00:00.000
+ <span
+ className="text-muted"
+ >
+ (
+ 2min
+ )
+ </span>
+ </td>
+</tr>
+`;
+
+exports[`TimeStamp Component should render correctly 2`] = `<tr />`;
+
+exports[`Timing Component should render correctly 1`] = `
+<div>
+ <h4>
+ Timing
+ </h4>
+ <table
+ className="timing-table"
+ >
+ <tbody>
+ <tr />
+ <tr />
+ <tr>
+ <td>
+ Server conn. initiated
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:01.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Client conn. established
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:01.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Server conn. TCP handshake
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:02.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Client conn. SSL handshake
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:02.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Server conn. SSL handshake
+ :
+ </td>
+ <td>
+ 1970-01-01 00:00:03.000
+ </td>
+ </tr>
+ <tr>
+ <td>
+ First response byte
+ :
+ </td>
+ <td>
+ 2017-05-21 12:38:32.481
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Response complete
+ :
+ </td>
+ <td>
+ 2017-05-21 12:38:32.481
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</div>
+`;