Skip to content

Commit

Permalink
fix(eslint): err and res is already declared in the upper scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Kristian Flaatten committed Jun 10, 2016
1 parent c53390a commit baab858
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,16 @@ describe('server', () => {
app.get(`${url}?page=3`)
.set('Origin', 'https://example1.com')
.expect(200)
.end((err, res) => {
assert.ifError(err);
const arr1 = res.body.data.map(d => d.id);
.end((err1, res1) => {
assert.ifError(err1);
const arr1 = res1.body.data.map(d => d.id);

app.get(`${url}?page=2`)
.set('Origin', 'https://example1.com')
.expect(200)
.end((err, res) => {
assert.ifError(err);
const arr2 = res.body.data.map(d => d.id);
.end((err2, res2) => {
assert.ifError(err2);
const arr2 = res2.body.data.map(d => d.id);

assert.notDeepEqual(arr1, arr2);

Expand Down

0 comments on commit baab858

Please sign in to comment.