File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 " ,
Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments