little changes to lint

This commit is contained in:
Victor Piousbox
2016-04-21 00:14:14 +00:00
parent f9915c3f77
commit 612e3b725f
2 changed files with 9 additions and 8 deletions

View File

@@ -24,6 +24,14 @@ describe('amazonPayments', () => {
amazonPayments.connect = amzOldConnect; amazonPayments.connect = amzOldConnect;
}); });
it('returns tokenInfo', async (done) => {
let result = await amz.getTokenInfo();
expect(result).to.eql(thisToken);
done();
});
});
describe('#getTokenInfo', () => {
it('validates access_token parameter', async (done) => { it('validates access_token parameter', async (done) => {
try { try {
await amz.getTokenInfo(); await amz.getTokenInfo();
@@ -32,17 +40,10 @@ describe('amazonPayments', () => {
done(); done();
} }
}); });
it('returns tokenInfo', async (done) => {
let result = await amz.getTokenInfo();
expect(result).to.eql(thisToken);
done();
});
}); });
describe('#createOrderReferenceId', () => { describe('#createOrderReferenceId', () => {
it('succeeds', () => { it('succeeds', () => {
}); });
}); });
}); });

View File

@@ -5,7 +5,7 @@ const IS_PROD = nconf.get('NODE_ENV') === 'production';
let api = {}; let api = {};
function connect (amazonPayments) { function connect (amazonPayments) { // eslint-disable-line no-shadow
return amazonPayments.connect({ return amazonPayments.connect({
environment: amazonPayments.Environment[IS_PROD ? 'Production' : 'Sandbox'], environment: amazonPayments.Environment[IS_PROD ? 'Production' : 'Sandbox'],
sellerId: nconf.get('AMAZON_PAYMENTS:SELLER_ID'), sellerId: nconf.get('AMAZON_PAYMENTS:SELLER_ID'),