mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing tests
This commit is contained in:
parent
dd94ec8a72
commit
51d2238635
@ -6,6 +6,7 @@ node_js:
|
||||
- '13'
|
||||
env:
|
||||
- MYSQL_HOST='localhost' MYSQL_PASSWORD='' MYSQL_USERNAME='root' MYSQL_DATABASE='pigallery2_test'
|
||||
- Server-port=35000
|
||||
services:
|
||||
- mysql
|
||||
addons:
|
||||
|
@ -65,12 +65,12 @@
|
||||
"@angular/platform-browser-dynamic": "8.2.14",
|
||||
"@angular/router": "8.2.14",
|
||||
"@ngx-translate/i18n-polyfill": "1.0.0",
|
||||
"@types/bcrypt": "^3.0.0",
|
||||
"@types/bcrypt": "3.0.0",
|
||||
"@types/bcryptjs": "2.4.2",
|
||||
"@types/chai": "4.2.6",
|
||||
"@types/cookie-parser": "1.4.2",
|
||||
"@types/cookie-session": "2.0.37",
|
||||
"@types/csurf": "^1.9.36",
|
||||
"@types/csurf": "1.9.36",
|
||||
"@types/ejs": "3.0.0",
|
||||
"@types/express": "4.17.2",
|
||||
"@types/express-jwt": "0.0.42",
|
||||
@ -89,7 +89,7 @@
|
||||
"@yaga/leaflet-ng2": "1.0.0",
|
||||
"bootstrap": "4.4.1",
|
||||
"chai": "4.2.0",
|
||||
"chai-http": "^4.3.0",
|
||||
"chai-http": "4.3.0",
|
||||
"codelyzer": "5.2.0",
|
||||
"core-js": "3.4.7",
|
||||
"ejs-loader": "0.3.5",
|
||||
|
@ -31,6 +31,7 @@ describe('SettingsRouter', () => {
|
||||
|
||||
describe('/GET settings', () => {
|
||||
it('it should GET all the books', async () => {
|
||||
Config.Client.authenticationRequired = false;
|
||||
const originalSettings = Config.original();
|
||||
originalSettings.Server.sessionSecret = null;
|
||||
const srv = new Server();
|
||||
|
Loading…
Reference in New Issue
Block a user