Skip to content

Commit 7b4c050

Browse files
authored
Readme Link Updates (#307)
* docs(readme): update links to match their redirects Added https to some links Updated links to the URL they redirect to * docs(readme): removed broken dependency badges removed dependency and devDependency badges because the site behind them is down (alanshaw/david#182)
1 parent a3715c4 commit 7b4c050

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Chai HTTP [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![NPM version](https://img.shields.io/npm/v/chai-http.svg)](https://img.shields.io/npm/v/chai-http.svg) [![Dependency Status](https://img.shields.io/david/chaijs/chai-http.svg)](https://img.shields.io/david/chaijs/chai-http.svg) [![devDependencies](https://david-dm.org/chaijs/chai-http/dev-status.svg)](https://david-dm.org/chaijs/chai-http/dev-status.svg)
1+
# Chai HTTP [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![NPM version](https://img.shields.io/npm/v/chai-http.svg)](https://img.shields.io/npm/v/chai-http.svg)
22

33
> HTTP integration testing with Chai assertions.
44
@@ -11,7 +11,7 @@
1111

1212
#### Installation
1313

14-
This is an addon plugin for the [Chai Assertion Library](http://chaijs.com). Install via [npm](http://npmjs.org).
14+
This is an addon plugin for the [Chai Assertion Library](https://www.chaijs.com/). Install via [npm](https://www.npmjs.com/).
1515

1616
npm install chai-http
1717

@@ -39,7 +39,7 @@ To use Chai HTTP on a web page, just include the [`dist/chai-http.js`](dist/chai
3939
## Integration Testing
4040

4141
Chai HTTP provides an interface for live integration
42-
testing via [superagent](https://github.com/visionmedia/superagent).
42+
testing via [superagent](https://github.com/ladjs/superagent).
4343
To do this, you must first
4444
construct a request to an application or url.
4545

@@ -190,7 +190,7 @@ asynchronously. Therefore, a mechanism must be used to notify the testing
190190
framework that the callback has completed. Otherwise, the test will pass before
191191
the assertions are checked.
192192

193-
For example, in the [Mocha test framework](http://mochajs.org/), this is
193+
For example, in the [Mocha test framework](https://mochajs.org//), this is
194194
accomplished using the
195195
[`done` callback](https://mochajs.org/#asynchronous-code), which signal that the
196196
callback has completed, and the assertions can be verified:
@@ -215,7 +215,7 @@ it('succeeds silently!', () => { // <= No done callback
215215
```
216216

217217
When `done` is passed in, Mocha will wait until the call to `done()`, or until
218-
the [timeout](http://mochajs.org/#timeouts) expires. `done` also accepts an
218+
the [timeout](https://mochajs.org/#timeouts) expires. `done` also accepts an
219219
error parameter when signaling completion.
220220

221221
#### Dealing with the response - Promises
@@ -301,9 +301,9 @@ If a value is provided, equality to value will be asserted.
301301
You may also pass a regular expression to check.
302302

303303
__Note:__ When running in a web browser, the
304-
[same-origin policy](https://tools.ietf.org/html/rfc6454#section-3)
304+
[same-origin policy](https://datatracker.ietf.org/doc/html/rfc6454#section-3)
305305
only allows Chai HTTP to read
306-
[certain headers](https://www.w3.org/TR/cors/#simple-response-header),
306+
[certain headers](https://fetch.spec.whatwg.org/#http-responses),
307307
which can cause assertions to fail.
308308

309309
```js
@@ -318,9 +318,9 @@ expect(req).to.have.header('content-type', /^text/);
318318
Assert that a `Response` or `Request` object has headers.
319319

320320
__Note:__ When running in a web browser, the
321-
[same-origin policy](https://tools.ietf.org/html/rfc6454#section-3)
321+
[same-origin policy](https://datatracker.ietf.org/doc/html/rfc6454#section-3)
322322
only allows Chai HTTP to read
323-
[certain headers](https://www.w3.org/TR/cors/#simple-response-header),
323+
[certain headers](https://fetch.spec.whatwg.org/#http-responses),
324324
which can cause assertions to fail.
325325

326326
```js

0 commit comments

Comments
 (0)