Commit graph

48 commits

Author SHA1 Message Date
Isiah Meadows
4a641092dc
Officially drop IE9-10 support, pull out our hacks (#2296)
- I also fixed a bunch of related comments
- I had to polyfill `requestAnimationFrame` for Node
- Drive-by: run `eslint . --fix`
- Drive-by: update transpiling info in CONTRIBUTING.md
- Drive-by: we aren't the only ones going semicolon-free
2018-11-27 18:04:15 -05:00
Robin (Robert) Thomas
b5219920ab Ospec: expose messages for passing tests, in addition to failing tests (#2227)
* ospec: all results, failing and passing, include .message and .context

Previously only failing tests had .message and .context.

* Updated docs

* Function was ugly

* Ospec verbose passing tests: put changelog update in right place
2018-11-21 15:47:10 -05:00
Robin (Robert) Thomas
0fd1bc9cae Add 'throws'/'notThrows' assertion to Ospec for error reporting (#2255)
* Ospec: added assertion that function does/doesnt throw error

* Ospec.throws passes npm test

* Ospec.throws: Address requested changes

* Ospec: message comparison support for .throws/.notthrows

Credit to @maranomynet, #2227
2018-11-21 15:46:34 -05:00
Isiah Meadows
97b6125654 Fixing bugs introduced by the big next merge
- Update package-lock.json
- Remove (failing) dupe ospec suite

Git didn't *quite* do the right thing here, so I had to fix a few
things.
2018-10-25 14:35:05 -04:00
Isiah Meadows
2635070734 Merge branch 'next' 2018-10-25 14:23:33 -04:00
Isiah Meadows
f844cc8134 Add functionality for inspecting arbitrary past calls
This made it much easier to debug multiple calls while developing this
patch.
2018-09-20 15:08:49 -04:00
Pierre-Yves Gérardy
14695c9cda [ospec] Allow more than one o.only() test 2018-06-01 20:22:58 +02:00
Pierre-Yves Gérardy
a23216b987 [ospec] record errors thrown in tests as failures 2018-06-01 20:22:58 +02:00
Pierre-Yves Gérardy
53597871b8 [ospec] don't allocate task for tests that will be skipped in o.only mode, fix stack overflow 2018-06-01 20:22:58 +02:00
Pierre-Yves Gérardy
4a4377e553 [ospec] Make the specTimeout tests hopefully less flaky 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
aa0f9eae98 [ospec] o.defaultTimeout => o.specTimeout, and documentation.
The timeout parameter is deprecated but will still work for now
2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
8ebf036b8c [ospec] Improve the done() call checker 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
33180370ea [ospec] Change the reserved test name token from '__' to '\x01' 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
285d00742d [ospec] Detect incomplete assertions 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
ad83d617e1 [ospec] replace ES6 std lib call with ES5 equivalent 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
e342805bfb [ospec] Add o.defaultTimeout() 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
9c1f8d5f35 [ospec] cleanup in code and tests, better error messages 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
8d78d493a7 [ospec] tests for the done() callback 2018-05-29 22:42:20 +02:00
Pierre-Yves Gérardy
5bbaac4259 ospec: tests and docs for o.report 2017-12-01 00:29:38 +01:00
Pierre-Yves Gérardy
7caebddcb2 ospec: better stack trace filter, fix #2036 2017-12-01 00:28:59 +01:00
Pierre-Yves Gérardy
3ac17d0075 ospec: tests and docs for o.report 2017-11-30 23:52:52 +01:00
Pierre-Yves Gérardy
b84e09369e ospec: better stack trace filter, fix #2036 2017-11-30 16:10:14 +01:00
Pierre-Yves Gérardy
95b5509564 lint: fix quotes 2017-11-29 17:09:24 +01:00
Pierre-Yves Gérardy
d116f249db lint: fix quotes 2017-11-29 17:08:46 +01:00
Sage Gerard
4a72829985 feat(ospec): Allow custom reporters for CI reasons (#2019) (#2020) 2017-11-29 17:03:38 +01:00
spacejack
b771b67111 Revert eslintrc change, return Promise instead of using async/await 2017-11-29 17:03:07 +01:00
Roderic Day
69045af46c Handle newlines in error messages, fixes #1495 2017-11-29 17:00:54 +01:00
Stephan Hoyer
fad8a7286b Support err as first argument for done callbacks in async tests 2017-11-29 16:50:08 +01:00
Stephan Hoyer
9b5afff52e Support promise return in ospec 2017-11-29 16:49:54 +01:00
Sage Gerard
78eeb2b365 feat(ospec): Allow custom reporters for CI reasons (#2019) (#2020) 2017-11-20 15:37:07 -08:00
Isiah Meadows
3c608f26b7
Merge pull request #1984 from RodericDay/newlines-in-error-messages
Handle newlines in error messages, fixes #1495
2017-10-28 20:20:34 -04:00
spacejack
3fe56bb503 Revert eslintrc change, return Promise instead of using async/await 2017-10-28 18:32:58 -04:00
Roderic Day
8fe7088398 Handle newlines in error messages, fixes #1495 2017-10-10 23:10:06 -04:00
Stephan Hoyer
39be9134f9 Support err as first argument for done callbacks in async tests 2017-08-31 19:31:08 +02:00
Stephan Hoyer
b345e4f023 Support promise return in ospec 2017-08-31 19:31:08 +02:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
b70ba6709a [ospec] stricter valid context for test definitions and assertions 2017-02-13 19:39:32 +01:00
Pierre-Yves Gerardy
9b3e646303 [ospec] make o.only noisier 2017-02-11 23:02:06 +01:00
Bryce Gibson
7868d97006 Remove o.only call to ensure other tests are run. 2017-01-03 11:19:55 +11:00
Pierre-Yves Gerardy
027a220779 [ospec:tests] Add assertion for object with undefined properties vs none 2017-01-01 16:09:15 +01:00
Pierre-Yves Gerardy
af39796da3 [ospec:tests] Add assertions for array deepEquals corner cases 2017-01-01 15:28:26 +01:00
Leo Horie
b62663bdc1 ensure properties in arrays are tested #1497 2016-12-31 19:27:23 -05:00
Barney Carroll
b8e3dcfbe4 Code style fix for 6b922d0: substitute double quotes 2016-08-31 11:54:21 +01:00
Barney Carroll
6b922d02ea Spies reflect wrapped function's name & length 2016-08-31 11:51:15 +01:00
Barney Carroll
211802793d [ospec] allow spy to wrap functions 2016-08-30 17:10:21 +01:00
Leo Horie
a6c56ff6b9 resolve hook in router 2016-07-11 09:50:00 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
559369016d initial commit (work in progress) 2016-04-20 20:02:37 -04:00