From e2d7c93cdb4926c0512a0e225123cb78152483ae Mon Sep 17 00:00:00 2001 From: Keegan Date: Fri, 12 Feb 2016 17:05:22 -0800 Subject: [PATCH] use older version of joi so travis chrome doesn't break over "const" keyword --- README.md | 5 ++--- package.json | 2 +- test/spec/components/index.js | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 687e194..d1351a4 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -# pebble-clay -Pebble Config Framework +# Clay +Clay is a JavaScript library that makes it super easy to add offline configuration pages to your Pebble apps. All you need to get started is a couple lines of JavaScript and a JSON file, no servers or HTML required. -__This is very much a work in progress but you are welcome to provide any feedback/feature requests you'd like via github issues__ diff --git a/package.json b/package.json index 696d8e9..6553511 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "gulp-inline": "0.0.15", "gulp-sass": "^2.1.1", "gulp-sourcemaps": "^1.6.0", - "joi": "^7.2.3", + "joi": "^6.10.1", "karma": "^0.13.19", "karma-browserify": "^5.0.1", "karma-chrome-launcher": "^0.2.2", diff --git a/test/spec/components/index.js b/test/spec/components/index.js index b7d8b0d..b916c45 100644 --- a/test/spec/components/index.js +++ b/test/spec/components/index.js @@ -15,8 +15,8 @@ var componentSchema = Joi.object().keys({ manipulator: Joi.alternatives().try( Joi.string().valid(Object.keys(manipulators)), Joi.object().keys({ - get: Joi.func().arity(0).required(), - set: Joi.func().arity(1).required() + get: Joi.func().required(), + set: Joi.func().required() }).required().unknown(true) ), defaults: Joi.object().optional(),