blagoev
7e8b7d7bab
upgrade RN in test app + fix simulators handling + fix test app to run tests immediatelly and exit afterwards
2017-12-04 15:56:42 +02:00
Thomas Goyne
9a31febc4c
Add support for lists of things other than objects
...
And add a shorthand syntax for schema definitions.
2017-09-26 11:40:22 -07:00
Thomas Goyne
18dea2bc6c
Add an equality assertion that does the right thing for a given property type
2017-09-26 11:40:22 -07:00
Thomas Goyne
0167e60142
Add support for choosing what stack depth to report in test failures
...
This gives a much more useful test failure message when an assertion is called
from within a function.
2017-09-26 11:40:22 -07:00
Thomas Goyne
53ca09839e
Check the exception message in all Realm tests which assert an exception is thrown
2017-09-14 16:40:58 -07:00
Yavor Georgiev
9d1d970b1f
Sync Session API ( #825 )
...
* Add Session class and expose it to JS
* Add error property on the sync config object for the event handler
* tests
* refactor access token refresh
* chrome debugging
2017-02-01 14:18:59 +01:00
Kristian Dupont
bd8a27b963
Improve error message for typeerrors ( #785 )
...
* Add a test
* Catch TypeErrorException
* Make exception asserts check error type
* Remove commented-out testcase and check for error type
* Test for Error, not TypeError
2017-01-10 13:41:56 +01:00
Søren Vind
88aae65721
Test logout, slightly better test scaffolding (so now we run tests to completion on the outer level of callbacks).
2016-11-10 18:06:27 -08:00
Søren Vind
87b30fb4ec
Add tests of Realm.Sync.User.all and Realm.Sync.User.current. Fix both to only return active (logged-in) users. Fix current return values: Throws if >1 user logged in, returns undefined if no logged in.
2016-11-10 12:54:15 -08:00
Søren Vind
164ea8ec79
Port over remaining tests for Realm.Sync.User
2016-11-10 10:35:36 -08:00
Scott Kyle
02b770b79a
Fix ESLint errors
2016-05-16 14:15:56 -07:00
Scott Kyle
4300e865c7
Abstracted check for Node v6
2016-05-10 11:34:33 -07:00
Scott Kyle
32a8a2ed72
Make migration tests work in Chrome debug mode
...
All realm operations for the RPC are now done in their own thread so it can be allowed to block on waiting for callback results. The recursive and multi-threaded nature of this makes it pretty tricky, but it works!
2016-04-29 13:55:49 -07:00
Ari Lazier
17e5946af4
support for data migrations
2016-04-27 08:30:59 -07:00
Scott Kyle
a5ec799a7c
Copy whole lib module into JS test bundle
...
This meant we needed to rename tests/lib to tests/js so they folder names would not conflict.
2016-02-29 03:24:58 -08:00