Skip to content

Commit

Permalink
tests(examples): rename to promise.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JaKXz committed Apr 6, 2017
1 parent 6a954be commit 169458c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ function nodeStyleCallback (err, result) {
}
```

You can also look at [the example tests](https://github.com/JaKXz/argsert/blob/master/examples.test.js) for other ways to invoke `argsert`.
You can also look at [the example tests](https://github.com/JaKXz/argsert/blob/master/promise.test.js) for other ways to invoke `argsert`.
To learn more you can read about JS' function methods: [`apply`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply), [`bind`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind), and [`call`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call).
3 changes: 2 additions & 1 deletion examples.test.js → promise.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import test from 'ava';
import argsert from './src/promise';

// NOTE: these examples use the promise API for coverage purposes only.
// NOTE: these examples use the promise API for coverage purposes only, but you
// can use them as documented for either one of the APIs.

test('the arguments object can be passed in, spread', async t => {
function foo () {
Expand Down

0 comments on commit 169458c

Please sign in to comment.