Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dtang committed Nov 26, 2015
1 parent 02bc8f5 commit 97699b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion article2.md
Expand Up @@ -87,7 +87,7 @@ it('calculate() should send the subtotal in the request', function(done) {
});
```

Here we have written a test where instead of specifying a static JSON response, we have specified a function to execute that reads the subtotal from the request and calculates a 10% tax. We are assuming CA has a 10% tax rate in our test. Now, our test fails until we send over the subtotal:
Here we have written a test where instead of specifying a static JSON response, we have specified a function to execute that reads the subtotal from the request and calculates a 10% tax. This function is called with an argument `uri` containing the value `/request` and `requestBody`, which is a JSON string containing the request data. We are assuming CA has a 10% tax rate in our test. Now, our test fails until we send over the subtotal.

```js
// src/part2/tax.js
Expand Down

0 comments on commit 97699b9

Please sign in to comment.