diff --git a/package.json b/package.json index 432ea75..3cf2ad8 100644 --- a/package.json +++ b/package.json @@ -6,5 +6,8 @@ "scripts": { "start": "visualtesting-api", "test": "" + }, + "dependencies": { + "visualtesting-api": "^0.1.0" } } diff --git a/visualtesting.conf.js b/visualtesting.conf.js index eead6e8..433f4c0 100644 --- a/visualtesting.conf.js +++ b/visualtesting.conf.js @@ -4,19 +4,19 @@ var Github = require('./node_modules/visualtesting-api/server/utils/github'); var Differ = require('./node_modules/visualtesting-api/server/utils/differ'); var storage = require('./node_modules/visualtesting-api/server/utils/storage'); -var service; +var services = []; if (process.env.GITHUB_BOT_TOKEN !== undefined) { - service = new Github({ + services.push(new Github({ botToken: process.env.GITHUB_BOT_TOKEN - }); + })); } function Apply(config) { config.set({ port: 9000, - services: [service], + services: services, differ: Differ, storage: storage