From 97699b96e6024aa219db9721d22c07236aa625de Mon Sep 17 00:00:00 2001 From: dtang Date: Wed, 25 Nov 2015 17:17:47 -0800 Subject: [PATCH] wip --- article2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article2.md b/article2.md index dbf1807..c6283e8 100644 --- a/article2.md +++ b/article2.md @@ -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