Commit Graph
19 Commits
Author SHA1 Message Date
Yoshua Wuyts a7916ec3f9 [major] choo v4 (#352)
* location: change url on location:setLocation

- [ ] don't break hashing
- [ ] allow not changing the url

fixup! move fns around

fixup! add search string

* app.start: clean

* walk: add

* location: update arg calls

* fixup! location: update

* uri-wrap: fix thunking

* router: update to latest sheet-router (#239)

* router: update to latest sheet-router

* tests: fix for latest version

* tests: fix SSR

* tests: fix history

* tests: spruce up

* docs: update example

* examples: update

* deps: bump sheet-router

* 4.0.0-0

* chore(changelog): 4.0.0 (#211)

* feat(api:) arg order (#268)

* s/data, state/state, data/

* feat(api): swap arguments

* fix(href): fix routing (#271)

* feat(http): remove (#269)

* feat(router): enable hash routing (#273)

* deps: fix mount

* 4.0.0-1

* feat(mount): copy {script,link} tags

* 4.0.0-2

* fix(mount): forEach -> for

Lol can't use forEach

* fix(router): use state.location.href (#282)

* fix(mount): use deep node clone

* 4.0.0-3

* fix(deps): remove hash-match

* 4.0.0-4

* fix(mount): return node

* 4.0.0-5

* fix(router): check if a hash is a valid selector (#339)

* 4.0.0-6

* fix(router): pass params on newstate (#343)

* 4.0.0-7

* feat(docs): update for 4.0.0 (#320)

* feat(docs): update for 4.0.0

* docs: update router example in readme (#337)

* chore(changelog): update for v4 (#351)
2016-12-11 19:35:29 +01:00
Christian Pekeler 4a973d7ac4 Fixing consistency of signatures. 2016-08-27 15:24:28 -06:00
Tim Wisniewski e44f9619e9 prev.params should always exist (#227) 2016-08-23 05:45:53 -04:00
Yoshua Wuyts d917e59aa4 test: fix broken hooks test 2016-07-10 15:04:26 +02:00
Yoshua Wuyts 4ad3dc9b72 deps: bump to barracks 8 2016-07-05 17:55:17 +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 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 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
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 0a191566d6 Fix effect test: barracks requires a callback 2016-07-04 08:07:54 -07:00
Todd Kennedy 8f8df602c5 Extract html into separate module (#103) 2016-07-02 12:55:41 +02: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