We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7db8a4 + 378b22d commit 1eda7c3Copy full SHA for 1eda7c3
test/flows.spec.js
@@ -121,7 +121,7 @@ describe('Flows', function() {
121
});
122
123
124
- it('Allows me to: subscribe then cancel with `at_period_end` defined', function() {
+ it('Allows me to: subscribe then update with `cancel_at_period_end` defined', function() {
125
return expect(
126
Promise.all([
127
stripe.plans.create({
@@ -144,10 +144,7 @@ describe('Flows', function() {
144
145
return stripe.customers.updateSubscription(customer.id, {
146
plan: plan.id,
147
- });
148
- }).then(function(subscription) {
149
- return stripe.customers.cancelSubscription(subscription.customer, {
150
- at_period_end: true,
+ cancel_at_period_end: true,
151
152
})
153
).to.eventually.have.property('cancel_at_period_end', true);
0 commit comments