docker container time correction plus small refactor on validator.js

This commit is contained in:
Carlos Jimenez 2018-01-10 14:03:52 +01:00
parent e019731ffb
commit b2bfcb7b3f
4 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ export const validators = {
min: conf.min || conf.is, min: conf.min || conf.is,
max: conf.max || conf.is max: conf.max || conf.is
}; };
let val = String(value); let val = value ? String(value) : '';
if (!validator.isLength(val, options)) { if (!validator.isLength(val, options)) {
if (conf.is) { if (conf.is) {
throw new Error(`Value should be ${conf.is} characters long`); throw new Error(`Value should be ${conf.is} characters long`);

View File

@ -7,7 +7,7 @@ const moduleAccessViewHashURL = '#!/';
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000; jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
fdescribe('Add greuge path', () => { describe('Add greuge path', () => {
describe('warm up', () => { describe('warm up', () => {
it('should warm up login and fixtures', done => { it('should warm up login and fixtures', done => {
nightmare nightmare

View File

@ -1,6 +1,7 @@
FROM mysql:5.6.37 FROM mysql:5.6.37
ENV MYSQL_ALLOW_EMPTY_PASSWORD yes ENV MYSQL_ALLOW_EMPTY_PASSWORD yes
ENV TZ GMT-1
COPY localDB01StructureAccount.sql /docker-entrypoint-initdb.d COPY localDB01StructureAccount.sql /docker-entrypoint-initdb.d
COPY localDB02StructureVn2008.sql /docker-entrypoint-initdb.d COPY localDB02StructureVn2008.sql /docker-entrypoint-initdb.d