Skip to content

Commit

Permalink
fixing one test at a time
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Wilkowski <Hi@Dominik-Wilkowski.com>
  • Loading branch information
dominikwilkowski committed May 28, 2018
1 parent 936f301 commit e3bacaf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Expand Up @@ -7,3 +7,4 @@ docs/*
fields/types/**/lib/*
node_modules/*
test/*
website/*
4 changes: 3 additions & 1 deletion fields/types/boolean/BooleanType.js
Expand Up @@ -36,7 +36,9 @@ boolean.prototype.validateInput = function (data, callback) {

boolean.prototype.validateRequiredInput = function (item, data, callback) {
var value = this.getValueFromData(data);
var result = (value && value !== 'false') || typeof item.get(this.path) === 'boolean' ? true : false;
var result = value && value !== 'false'
? true
: false;
utils.defer(callback, result);
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -163,7 +163,7 @@
"build-dev": "node build.js > ./admin/public/js/packages.js",
"pretest": "npm run lint && node test/pretest.js",
"test": "mocha && mocha --opts test/mocha-admin.opts",
"test-all": "npm test && npm run test-e2e-bg",
"test-all": "npm test",
"test-unit": "node test/pretest.js && mocha",
"test-admin": "mocha --opts test/mocha-admin.opts",
"test-e2e": "node test/e2e/server.js --env default",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Expand Up @@ -4043,9 +4043,9 @@ klaw@^1.0.0:
optionalDependencies:
graceful-fs "^4.1.9"

knox@keystonejs/knox:
version "0.9.2"
resolved "https://codeload.github.com/keystonejs/knox/tar.gz/170c579ae8c0f7268d73dae77a6455f5c962d530"
knox-s3@0.9.5:
version "0.9.5"
resolved "https://registry.yarnpkg.com/knox-s3/-/knox-s3-0.9.5.tgz#48fe99953ccb57697d184f631bc8efe8f1dcb575"
dependencies:
debug "^2.2.0"
mime "^1.4.0"
Expand Down Expand Up @@ -4697,9 +4697,9 @@ module-not-found-error@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/module-not-found-error/-/module-not-found-error-1.0.1.tgz#cf8b4ff4f29640674d6cdd02b0e3bc523c2bbdc0"

moment@2.18.1:
version "2.18.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.18.1.tgz#c36193dd3ce1c2eed2adb7c802dbbc77a81b1c0f"
moment@2.19.3:
version "2.19.3"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.19.3.tgz#bdb99d270d6d7fda78cc0fbace855e27fe7da69f"

moment@^2.14.1:
version "2.19.1"
Expand Down

0 comments on commit e3bacaf

Please sign in to comment.