Skip to content

Commit e57eff0

Browse files
committed
document Observable support
added in #165
1 parent 403a28c commit e57eff0

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,17 @@
5858
"tdd",
5959
"assert",
6060
"assertion",
61-
"futuristic"
61+
"futuristic",
62+
"promise",
63+
"promises",
64+
"async",
65+
"function",
66+
"await",
67+
"generator",
68+
"generators",
69+
"yield",
70+
"observable",
71+
"observables"
6272
],
6373
"dependencies": {
6474
"arr-flatten": "^1.0.1",

readme.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Even though JavaScript is single-threaded, IO in Node.js can happen in parallel
2929
- [Promise support](#promise-support)
3030
- [Generator function support](#generator-function-support)
3131
- [Async function support](#async-function-support)
32+
- [Observable support](#observable-support)
3233
- [Enhanced asserts](#enhanced-asserts)
3334

3435

@@ -319,7 +320,6 @@ test(function * (t) {
319320

320321
*You don't have to manually call `t.end()`.*
321322

322-
323323
### Async function support
324324

325325
AVA comes with builtin support for [async functions](https://tc39.github.io/ecmascript-asyncawait/) *(async/await)*.
@@ -339,6 +339,21 @@ test(async t => {
339339

340340
*You don't have to manually call `t.end()`.*
341341

342+
### Observable support
343+
344+
AVA comes with builtin support for [observables](https://github.com/zenparsing/es-observable).
345+
346+
```js
347+
test(t => {
348+
return Observable.of(1, 2, 3).map(n => {
349+
t.true(n > 0);
350+
return n * n;
351+
});
352+
});
353+
```
354+
355+
*You don't have to manually call `t.end()`.*
356+
342357
### Callback support
343358

344359
AVA supports using `t.end` as the final callback when using node-style

0 commit comments

Comments
 (0)