Update links to test files in readme

This commit is contained in:
Olly Levett 2018-10-10 20:39:06 +01:00 коммит произвёл GitHub
Родитель ac6b9fc365
Коммит f23c283260
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -48,14 +48,14 @@ $ npm run units
See [samples](./samples) for complete coding examples
Also see [rest](./test/resttests.ts) and [http](./test/httptests.ts) tests for detailed examples.
Also see [rest](./test/tests/resttests.ts) and [http](./test/tests/httptests.ts) tests for detailed examples.
## Errors
### http
The http client does not throw unless truly exceptional. A request that successfully executes resulting in a 404, 500 etc... will return a response object with a status code and a body. Redirects (3xx) will be followed by default.
See [http tests](./test/httptests.ts) for detailed examples.
See [http tests](./test/tests/httptests.ts) for detailed examples.
### rest
The rest client is a high level client which uses the http client. It's responsibility is to turn a body into a typed resource object.
@ -66,7 +66,7 @@ A 404 will not throw but the result object will be null and the result statusCod
Other 4xx and 5xx errors will throw. The status code will be attached to the error object. If a restful error object is returned ({ message: xxx}), then the error message will be that. Otherwise, it will be a generic, "Failed Request: (xxx)".
See [rest tests](./test/resttests.ts) for detailed examples.
See [rest tests](./test/tests/resttests.ts) for detailed examples.
## Node Support