Skip to content

Commit

Permalink
Adding visualtesting-api to the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
elicwhite committed Apr 8, 2015
1 parent ffc93ac commit e526830
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"scripts": {
"start": "visualtesting-api",
"test": ""
},
"dependencies": {
"visualtesting-api": "^0.1.0"
}
}
8 changes: 4 additions & 4 deletions visualtesting.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e526830

Please sign in to comment.