Skip to content

Commit 2c4f952

Browse files
committed
fix lint
1 parent 05de6dd commit 2c4f952

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
},
7474
"scripts": {
7575
"docker:build": "docker build -t fielddb-auth .",
76-
"docker:test": "echo 'module.exports = { usersDbConnection: { url: \"http://localhost:5984\" }};' > config/local.js && docker compose up -d && docker compose logs && npm run setup && npm run test:deprecated",
77-
"docker:test:no-cache": "echo 'module.exports = { usersDbConnection: { url: \"http://localhost:5984\" }};' > config/local.js && docker compose build --no-cache && docker compose up -d && docker compose logs && npm run setup && npm run test:deprecated",
76+
"docker:test": "echo 'module.exports = { usersDbConnection: { url: \"http://localhost:5984\" } };' > config/local.js && docker compose up -d && docker compose logs && npm run setup && npm run test:deprecated",
77+
"docker:test:no-cache": "echo 'module.exports = { usersDbConnection: { url: \"http://localhost:5984\" } };' > config/local.js && docker compose build --no-cache && docker compose up -d && docker compose logs && npm run setup && npm run test:deprecated",
7878
"coverage": "NODE_ENV=test BUNYAN_LOG_LEVEL=FATAL NODE_TLS_REJECT_UNAUTHORIZED=0 nyc npm test",
7979
"coveralls": "cat ./coverage/lcov.info | coveralls",
8080
"lint": "eslint ",

test/integration/install.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ describe('install', () => {
6262
debug('res', res.body);
6363
expect(res.body).includes('_users', JSON.stringify(res.body));
6464
})
65-
.catch((err) => supertest(destination)
65+
.catch(() => supertest(destination)
6666
.put('/_users')
6767
.set('cookie', adminSessionCookie)
6868
.set('Accept', 'application/json')
69-
.send({})
70-
));
69+
.send({})));
7170

7271
it('should create the _users views', () => supertest(destination)
7372
.post('/_users')
@@ -189,11 +188,13 @@ describe('install', () => {
189188

190189
return supertest(destination)
191190
.get(`/${dbnameToReplicate}/_design/data/_view/by_type?group=true`)
192-
.set('Accept', 'application/json');return
191+
.set('Accept', 'application/json');
193192
})
194193
.then((res) => {
195194
debug('res.body new_testing_corpus design doc for data', res.body);
196-
expect(res.body).includes('Corpus', JSON.stringify(res.body));
195+
expect(res.body).to.deep.equal({
196+
rows: [],
197+
}, JSON.stringify(res.body));
197198
});
198199
});
199200
});

0 commit comments

Comments
 (0)