Yoshua Wuyts
4ad3dc9b72
deps: bump to barracks 8
2016-07-05 17:55:17 +02:00
Yoshua Wuyts
dc1a2b25e1
Merge pull request #122 from yoshuawuyts/bump-doc-ready
...
deps: bump document ready version
2016-07-05 16:27:28 +02:00
Yoshua Wuyts
343297ac26
deps: bump document ready version
2016-07-05 16:21:00 +02:00
Yoshua Wuyts
39750fc360
Merge pull request #115 from bendrucker/unified-tests
...
Run all the tests via Electron
2016-07-05 02:25:42 +02:00
Ben Drucker
e3f715f71b
Clean up all DOM nodes when tests end
...
As the test suite grows it's bad for debugging to leak tons of elements
onto document.body. In order to concisely append/remove on the tests'
"end" event, we need to make sure the root tagName doesn't change. If it
does, the `tree` returned from `app.start` will no longer be the root
node and the removal fn will throw.
2016-07-04 16:19:17 -07:00
Ben Drucker
1e006f3716
Enable xvfb on travis to run electron
2016-07-04 16:19:17 -07:00
Ben Drucker
6d0070e62f
Update npm test command to use electron
2016-07-04 16:19:17 -07:00
Ben Drucker
57ec042e1a
Add test nesting using sheet router (cov 100!)
2016-07-04 16:19:17 -07:00
Ben Drucker
04b9e0efd2
Add test coverage for disabling sheet-router history/href listeners
2016-07-04 16:19:17 -07:00
Ben Drucker
e6a2a8c01d
Add test for hash based routing
2016-07-04 16:19:17 -07:00
Ben Drucker
37976c86f5
Add a routing test using proxyquire to short-circuit history handlers
...
* proxyquire (pq) replaces choo's sheet-router/history with a mock
* pq-universal replaces pq w/ pqify in the browser
* magic!
2016-07-04 16:19:17 -07:00
Ben Drucker
fb38d151c6
Add test for default freezing + noFreeze option
2016-07-04 16:19:17 -07:00
Ben Drucker
c3293b5953
Remove dead check for strict prev/current state equality
...
* Barracks will always return a new object
https://github.com/yoshuawuyts/barracks/blob/11d3c6d1822beadce0251279f9bc8370c569ea5e/index.js#L144
2016-07-04 16:19:17 -07:00
Ben Drucker
30a228b3e0
Update onError hook test to only expect err argument
2016-07-04 16:19:17 -07:00
Ben Drucker
e0783320f7
Add tests and fixes for rehydration
...
* Barracks must get an initial state or state.location is undefined
* Replaces document.addEventListener w/ pkg handling existing ready doc
2016-07-04 16:19:12 -07:00
Yoshua Wuyts
83fd7f0839
docs: fix missing toc section
2016-07-04 23:08:25 +02:00
Yoshua Wuyts
68f7188a32
Merge pull request #117 from yoshuawuyts/restructure-docs
...
docs: restructure
2016-07-04 23:04:13 +02:00
Yoshua Wuyts
ce9f2b4990
docs: restructure
2016-07-04 23:02:39 +02:00
Ben Drucker
e2f0c5429c
Add tests for onError, onAction, and onState hooks from barracks
2016-07-04 08:07:54 -07:00
Ben Drucker
180ea8ae10
Remove all the "should" grammar from tests
2016-07-04 08:07:54 -07:00
Ben Drucker
57030b4e0e
Update browser tests for new router fn arguments
...
See 6407188ee9
2016-07-04 08:07:54 -07:00
Ben Drucker
3fc66acdc3
Add test confirming toString() works with min-document elements
2016-07-04 08:07:54 -07:00
Ben Drucker
5f4fda6646
Generate test coverage via electron with tape-istanbul
2016-07-04 08:07:54 -07:00
Ben Drucker
6f97b1c468
Add test:electron script for all tests
2016-07-04 08:07:54 -07:00
Ben Drucker
0a191566d6
Fix effect test: barracks requires a callback
2016-07-04 08:07:54 -07:00
Ben Drucker
cdabc4d85f
Return outerHTML from toString if available, fall back to toString()
2016-07-04 08:07:54 -07:00
Yoshua Wuyts
5807cdda7b
Merge pull request #116 from timwis/rename-action-param-to-data
...
Rename action param to data
2016-07-04 11:32:50 +02:00
timwis
d19e67322a
Rename action param -> data in examples
2016-07-03 12:37:43 -04:00
timwis
6954bc5084
Rename action param -> data in index.js
2016-07-03 12:37:43 -04:00
timwis
bba9ef4d46
Rename action param -> data in docs
2016-07-03 12:37:43 -04:00
Yoshua Wuyts
a8d87441b2
Merge pull request #110 from yoshuawuyts/yo-yoify
...
Yo yoify
2016-07-02 23:10:28 +02:00
Yoshua Wuyts
e0fd6ef81f
script: add yo-yoify to the mix
2016-07-02 23:05:16 +02:00
Yoshua Wuyts
f1b59ca117
Merge pull request #111 from yoshuawuyts/change-view-arguments
...
Change view arguments
2016-07-02 22:59:56 +02:00
Yoshua Wuyts
6407188ee9
router: change order of arguments
...
fixup! freeze state & rename app ns to location
2016-07-02 22:54:35 +02:00
Yoshua Wuyts
c679e37d3a
Merge pull request #104 from yoshuawuyts/use-barracks
...
architecture: use barracks
2016-07-02 16:14:23 +02:00
Yoshua Wuyts
9e039ed561
architecture: use barracks
...
Changes
=======
- add hook handlers
- add effect composition
- add noFreeze option
Commits
=======
- fixup! fix toString()
- fixup! use assert instead of throw
- fixup! fix reducers
- fixup! work on done callbacks
- fixup! more callback work
- fixup! woooh fixed effects errs
- fixup! wrap up stuff
2016-07-02 16:00:26 +02:00
Todd Kennedy
8f8df602c5
Extract html into separate module ( #103 )
2016-07-02 12:55:41 +02:00
Yoshua Wuyts
d0920f153f
Merge pull request #113 from radarhere/patch-1
...
Fixed typos
2016-07-02 12:06:24 +02:00
Andrew Murray
2498415805
Fixed typos
2016-07-02 14:44:29 +10:00
Todd Kennedy
665a157d60
only run the tests when trying to make a new version ( #109 )
2016-07-01 10:27:39 -07:00
Yoshua Wuyts
47cc4f8c2c
Merge pull request #73 from zigomir/fix-mailbox-example
...
Fix mailbox example
2016-06-30 16:15:06 +02:00
Yoshua Wuyts
5a17453b0f
Merge pull request #100 from loklaan/effects-example-clarification
...
Minor clarifying correction to keyboard example code.
2016-06-30 16:05:47 +02:00
Lochlan Bunn
de079d52c8
Minor clarifying correction to keyboard example code.
2016-06-30 21:48:13 +10:00
Todd Kennedy
64436a2a80
TEST: Set up for testing via zuul/sauce labs ( #86 )
...
This requires the .travis.yml to be updated with the open sauce credentials
as explained at https://github.com/defunctzombie/zuul/wiki/Travis-ci#5-final-step
2016-06-29 08:06:04 -07:00
Yoshua Wuyts
31d863fdad
Merge pull request #90 from zigomir/patch-1
...
Call `http.del` in httpDelete function
2016-06-27 16:22:17 +02:00
Yoshua Wuyts
3e74a5f8db
Merge pull request #91 from zigomir/patch-3
...
`document` not used in form snippet
2016-06-27 16:21:47 +02:00
Žiga Vidic
652b6569a8
document not used in form snippet
2016-06-26 20:37:06 -07:00
Žiga Vidic
c2c32350ab
Call http.del in httpDelete function
2016-06-26 20:28:35 -07:00
Yoshua Wuyts
84bee19120
docs: add yo-yo, bel to see-also
2016-06-26 00:34:00 +02:00
Yoshua Wuyts
8e38595144
2.3.1
2016-06-25 12:23:56 +02:00