aliyun / api-gateway-nodejs-sdk

The API Gateway SDK for Node.js
MIT License
106 stars 23 forks source link

README.md is not right #12

Closed ngogia20 closed 6 years ago

ngogia20 commented 6 years ago

In README.md client sample has

it('should ok get(url)', function* () { var url = 'https://dm-81.data.aliyun.com/rest/160601/ip/getIpInfo.json?ip=210.75.225.254'; var result = yield client.get(url); });

Issue raised and concern here - By Nikesh Gogia

  1. it is not a correct variable. Can this be corrected ?
  2. 'should ok get(url)' - Can you also correct this.
JacksonTian commented 6 years ago

It's a demo of unit tests that run with mocha. You can just use the generator block.

JacksonTian commented 6 years ago

The document was updated.