Commit Graph

445 Commits

Author SHA1 Message Date
Matthew Shao
546bac68d4 [web] Fix 100% coverage for js/components/FlowTable/FlowColumns.js 2017-05-22 10:46:03 +08:00
Matthew Shao
2c38fddea5 [web] TFlow minor improved. 2017-05-21 20:59:19 +08:00
Matthew Shao
55a58c4c6f [web] Add js/__tests__/ducks/_tflow.js 2017-05-19 10:17:06 +08:00
Matthew Shao
5df0ddf358 [web] Updates test to use the new _tflow.js. 2017-05-19 09:50:12 +08:00
Matthew Shao
4e4be8bd68 [web] Update snapshot. 2017-05-18 11:14:26 +08:00
Matthew Shao
d902b851c8 [web] Minor fixes for component tests. 2017-05-18 10:42:06 +08:00
Matthew Shao
d290be2327 [web] Add tests for js/components/FlowTable/FlowColumnsSpec.js 2017-05-17 22:33:29 +08:00
Matthew Shao
22a1709c8b [web] Add a TFlow class to js/ducks/tutils.js
Many Components requires a flow object when being rendered, so we put a TFlow
class here, currently has the minimize structure, only contains the
attributes we needed in the components to be tested.
2017-05-17 22:27:20 +08:00
Matthew Shao
204dea4a2e [web] Add tests for src/js/components/ValueEditor/ValueEditor.js 2017-05-16 23:03:03 +08:00
Matthew Shao
d63e01d48d [web] Add tests for js/components/ValueEditor/ValidateEditor.js 2017-05-16 18:00:14 +08:00
Matthew Shao
c327ae853c [web] Add tests for js/components/helpers/AutoScroll.js 2017-05-15 17:55:06 +08:00
Matthew Shao
6757eda23a [web] Add tests for js/components/helpers/VirtualScroll.js 2017-05-15 16:44:02 +08:00
Matthew Shao
801f78f3ed [web] Add tests for js/components/common/Splitter.jsx 2017-05-15 10:08:48 +08:00
Matthew Shao
5c5f308a24 [web] Minor fix for FileChooser.jsx 2017-05-13 21:01:59 +08:00
Matthew Shao
ace67b5a87 [web] Add tests for js/components/common/ToggleInputButton.jsx 2017-05-12 09:07:28 +08:00
Matthew Shao
2b5a300284 [web] Add tests for js/components/common/ToggleButton.jsx 2017-05-12 09:05:06 +08:00
Matthew Shao
782d564e76 [web] Add tests for js/components/common/FileChooser.jsx & minor fix. 2017-05-12 08:58:37 +08:00
Matthew Shao
9a7ac14654 [web] Add tests for js/components/common/DocsLink.jsx 2017-05-11 10:25:45 +08:00
Matthew Shao
ce15501c54 [web] Add tests for js/components/common/Dropdown.jsx 2017-05-11 08:43:50 +08:00
Matthew Shao
f295bfd558 [web] Add 'react-test-renderer' dependency. 2017-05-11 08:27:40 +08:00
Matthew Shao
f3e5c35b49 [web] Add tests for js/components/common/Button.jsx 2017-05-11 08:19:10 +08:00
Maximilian Hils
537d5fa229 web: do not collect coverage when invoking "jest"
this is annoying when runnig jest --watch=all.
2017-05-09 19:12:56 +02:00
Maximilian Hils
457bc36d7f web: clear mock store actions after each test 2017-05-09 19:10:48 +02:00
Matthew Shao
fd24e15bfb [web] Update tests for js/ducks/ui/keyboard.js 2017-05-09 18:55:24 +08:00
Matthew Shao
aca30ad8d8 [web] Add tests for js/ducks/ui/keyboard.js 2017-05-09 16:05:41 +08:00
Matthew Shao
f327a52029 [web] Add tests for js/__tests__/ducks/ui/indexSpec.js 2017-05-08 09:26:00 +08:00
Matthew Shao
21cdfe835b [web] Add tests for js/ducks/index.js & js/ducks/ui/index.js 2017-05-08 08:53:44 +08:00
Matthew Shao
23f180ba4f [web] Clear up jest.unmock()
Automocking is no longer enable by default, so we don't need to unmock
modules manually.
2017-05-07 21:32:49 +08:00
Maximilian Hils
63ffd9a3a9 honest js coverage 2017-05-02 11:34:42 +02:00
Maximilian Hils
288448c575 Merge pull request #2285 from MatthewShao/jest-dev
[web] Add coverage for js/urlState.js
2017-04-30 18:26:41 +02:00
Matthew Shao
365677006c [web] Export updateUrlFromStore and updateStoreFromUrl 2017-04-30 22:40:58 +08:00
Matthew Shao
a7feced5de [web] Introduce redux-mock-store and minor fix. 2017-04-30 20:00:36 +08:00
Maximilian Hils
97a00728a8 [web] add connection tests 2017-04-29 19:43:59 +02:00
Maximilian Hils
8f1b763082 [web] add connection indicator 2017-04-29 19:34:51 +02:00
Matthew Shao
f8b76a62ff [web] Add coverage for js/urlState.js 2017-04-28 22:06:17 +08:00
cle1000
115a31c9ba change import of prop-types 2017-04-27 10:54:21 +02:00
Matthew Shao
ec7d90f9be [web] Add coverage for js/utils.js, js/flow/utils.js 2017-04-26 17:06:50 +08:00
Matthew Shao
6962a2c3f2 Fix the tests for flows actions. 2017-04-25 19:29:52 +08:00
Matthew Shao
dcac976a47 Merge branch 'jest-dev' of https://github.com/MatthewShao/mitmproxy into jest-dev 2017-04-25 19:27:53 +08:00
Maximilian Hils
161cdff25e simplify selectRelative, add example for action testing 2017-04-24 15:13:45 +02:00
Matthew Shao
ae71ec1d30 [web] Coverage++ for ducks/flows.js 2017-04-24 14:18:12 +02:00
Matthew Shao
15c19d2bc6 [web] Coverage++ for ducks/flows.js 2017-03-28 20:44:49 +08:00
Matthew Shao
9a604b5cfe [web] Minor fixes for the test. 2017-03-26 21:58:47 +08:00
Matthew Shao
17ac1ff6cb [web] Exclude src/js/filt/filt.js from coverage report. 2017-03-26 21:38:00 +08:00
Matthew Shao
de9ecb7c30 [web] Add JS coverage to codecov. 2017-03-26 09:36:18 +08:00
Matthew Shao
31a45ddaaa [web] Reach 100% coverage for ducks/settings.js 2017-03-26 09:34:45 +08:00
Matthew Shao
82ecc5448d [web] Update configuration of jest to avoid deprecation warning 2017-03-22 18:42:46 +08:00
Matthew Shao
20d3ae98e0 [web] Reach 100% coverage for ducks/eventLog.js 2017-03-22 18:32:28 +08:00
Matthew Shao
ab2fcbef8d Fix#2184, mitmweb -n dispalys incorrect message. (#2187)
* Fixes #2184, python code.

* Fixes #2184, JavaScript code.

* [web] Update Footer.jsx (#2184)
2017-03-22 01:26:04 +01:00
Maximilian Hils
92e3358915 Merge pull request #2182 from syahn/fix-#2134
Fix #2134
2017-03-19 14:47:50 +01:00