Skip to content

Commit

Permalink
Readme Link Updates (#307)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
Trickfilm400 authored Jun 9, 2023
1 parent a3715c4 commit 7b4c050
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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)
# 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)

> HTTP integration testing with Chai assertions.
Expand All @@ -11,7 +11,7 @@

#### Installation

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

npm install chai-http

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

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

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

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

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

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

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

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

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

```js
Expand Down

0 comments on commit 7b4c050

Please sign in to comment.