Skip to content

Commit 01d4aa2

Browse files
committed
remove commented code
1 parent b3caa97 commit 01d4aa2

File tree

3 files changed

+0
-46
lines changed

3 files changed

+0
-46
lines changed

lib/recurly/risk/three-d-secure/three-d-secure.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ export class ThreeDSecure extends RiskConcern {
110110
// return finishedPreflights.concat([{ processor: type, gateway_code, results}]);
111111
return {
112112
tokenType: finishedPreflights.tokenType || tokenType,
113-
// risk: {
114-
// processor: gatewayType,
115-
// gateway_code,
116-
// risk
117-
// // finishedPreflights.risk.concat(risk)
118-
// }
119113
risk: finishedPreflights.risk.concat({
120114
processor: gatewayType,
121115
gateway_code,

test/unit/risk.test.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,6 @@ describe('Risk', function () {
8585
});
8686
});
8787

88-
// it('appends proactive data to the preflight request when enabled', function (done) {
89-
// const { recurly, sandbox, bin } = this;
90-
// recurly.config.risk.threeDSecure.proactive.enabled = true;
91-
// recurly.config.risk.threeDSecure.proactive.gateway_code = 'test-gateway-code';
92-
// recurly.config.risk.threeDSecure.proactive.amount = 0.00
93-
// sandbox.spy(recurly.request, 'get');
94-
// Risk.preflight({ recurly, bin })
95-
// .done(results => {
96-
// assert(recurly.request.get.calledOnce);
97-
// assert(recurly.request.get.calledWithMatch({ route: '/risk/preflights?proactive=true&gatewayCode=test-gateway-code' }));
98-
// done();
99-
// });
100-
// });
101-
10288
describe('when some results are timeouts', function () {
10389
beforeEach(function () {
10490
this.stubPreflightResults = { risk: [

test/unit/risk/three-d-secure.test.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -242,32 +242,6 @@ describe('ThreeDSecure', function () {
242242
});
243243
});
244244

245-
// describe('when a proactiveTokenId is provided', function () {
246-
// it('throws an error if it is not valid', function (done) {
247-
// const { risk } = this;
248-
// const threeDSecure = new ThreeDSecure({ risk, proactiveTokenId: 'invalid-token-id' });
249-
250-
// threeDSecure.on('error', err => {
251-
// assert.strictEqual(err.code, 'not-found');
252-
// assert.strictEqual(err.message, 'Token not found');
253-
// done();
254-
// });
255-
// });
256-
257-
// it('calls onStrategyDone when a strategy completes', function (done) {
258-
// const { sandbox, threeDSecure } = this;
259-
// const example = { arbitrary: 'test-payload' };
260-
// sandbox.spy(threeDSecure, 'onStrategyDone');
261-
262-
// threeDSecure.whenReady(() => {
263-
// threeDSecure.strategy.emit('done', example);
264-
// assert(threeDSecure.onStrategyDone.calledOnce);
265-
// assert(threeDSecure.onStrategyDone.calledWithMatch(example));
266-
// done();
267-
// });
268-
// });
269-
// });
270-
271245
describe('challengeWindowSize', function() {
272246
it('validates', function () {
273247
const challengeWindowSize = 'xx';

0 commit comments

Comments
 (0)