Skip to content

Commit 1eda7c3

Browse files
authored
Merge pull request stripe#492 from stripe/ob-fix-tests
Fix test suite for latest API version
2 parents c7db8a4 + 378b22d commit 1eda7c3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/flows.spec.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ describe('Flows', function() {
121121
});
122122
});
123123

124-
it('Allows me to: subscribe then cancel with `at_period_end` defined', function() {
124+
it('Allows me to: subscribe then update with `cancel_at_period_end` defined', function() {
125125
return expect(
126126
Promise.all([
127127
stripe.plans.create({
@@ -144,10 +144,7 @@ describe('Flows', function() {
144144

145145
return stripe.customers.updateSubscription(customer.id, {
146146
plan: plan.id,
147-
});
148-
}).then(function(subscription) {
149-
return stripe.customers.cancelSubscription(subscription.customer, {
150-
at_period_end: true,
147+
cancel_at_period_end: true,
151148
});
152149
})
153150
).to.eventually.have.property('cancel_at_period_end', true);

0 commit comments

Comments
 (0)