Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
Clean (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm committed Feb 26, 2017
1 parent ec55bf7 commit a809a96
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 737 deletions.
1 change: 1 addition & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ filter:
build:
environment:
node: '6'
postgresql: false
dependencies:
before:
- curl -o- -L https://yarnpkg.com/install.sh | bash
Expand Down
2 changes: 1 addition & 1 deletion lib/client/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use strict";

const requestPromise = require('request-promise-native');
const pkg = require('../../package.json');
const logger = require('../logger/taskLogger')('Client');
const Response = require('../model/Response');
const pkg = require('../../package.json');

const defaultOptionList = {
headers: {'User-Agent': pkg.name},
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@
"hapi": "^16.1.0",
"hapi-swagger": "^7.6.0",
"inert": "^4.1.0",
"make-error-cause": "^1.2.2",
"moment": "^2.17.1",
"nested-error-stacks": "^2.0.0",
"proxyquire": "^1.7.11",
"request": "^2.79.0",
"request-promise-native": "^1.0.3",
"sinon": "^1.17.7",
"vision": "^4.1.1",
"winston": "^2.3.1"
},
Expand All @@ -38,12 +35,13 @@
},
"homepage": "https://github.com/yoanm/async-response-aggregator-server",
"devDependencies": {
"babel-cli": "^6.18.0",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"eslint": "^2.9.0",
"eslint-config-google": "^0.5.0",
"lab": "^12.1.0"
"lab": "^12.1.0",
"proxyquire": "^1.7.11",
"sinon": "^1.17.7"
},
"main": "index.js"
}
4 changes: 0 additions & 4 deletions test/client/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const describe = lab.experiment;
const beforeEach = lab.before;

const chai = require("chai");
const sinon = require('sinon');
const chaiAsPromised = require("chai-as-promised");
const Request = require('../../lib/model/Request');
const Response = require('../../lib/model/Response');
Expand All @@ -19,7 +18,6 @@ const proxyquire = require('proxyquire').noPreserveCache();

describe('client', () => {
let client;
let NestedError = sinon.spy();
let pkg;

let requestOptionList;
Expand All @@ -31,7 +29,6 @@ describe('client', () => {
requestOptionList = [];
requestResolvedValue = null;
requestRejectedValue = null;
NestedError.reset();
pkg = {
name: 'appName'
};
Expand All @@ -43,7 +40,6 @@ describe('client', () => {
: Promise.reject(requestRejectedValue);
};
client = proxyquire('../../lib/client/index', {
'nested-error-stacks': NestedError,
'request-promise-native': requestPromise,
'../../package.json': pkg
});
Expand Down

0 comments on commit a809a96

Please sign in to comment.