docker container time correction plus small refactor on validator.js
This commit is contained in:
parent
e019731ffb
commit
b2bfcb7b3f
|
@ -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`);
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue