mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 23:23:38 -05:00
Fix typo in name of method
GitOrigin-RevId: fe8a2bcf5e577c001c4508b7bb010e1738ccc903
This commit is contained in:
parent
e08b0b3d9e
commit
0a62bc1239
2 changed files with 4 additions and 4 deletions
|
@ -599,7 +599,7 @@ const promises = {
|
||||||
return await RecurlyWrapper.promises._parseSubscriptionXml(body)
|
return await RecurlyWrapper.promises._parseSubscriptionXml(body)
|
||||||
},
|
},
|
||||||
|
|
||||||
async createFixedAmmountCoupon(
|
async createFixedAmountCoupon(
|
||||||
couponCode,
|
couponCode,
|
||||||
name,
|
name,
|
||||||
currencyCode,
|
currencyCode,
|
||||||
|
@ -878,7 +878,7 @@ const RecurlyWrapper = {
|
||||||
apiUrl: Settings.apis.recurly.url || 'https://api.recurly.com/v2',
|
apiUrl: Settings.apis.recurly.url || 'https://api.recurly.com/v2',
|
||||||
_buildXml,
|
_buildXml,
|
||||||
_parseXml: callbackify(promises._parseXml),
|
_parseXml: callbackify(promises._parseXml),
|
||||||
createFixedAmmountCoupon: callbackify(promises.createFixedAmmountCoupon),
|
createFixedAmountCoupon: callbackify(promises.createFixedAmountCoupon),
|
||||||
getAccountActiveCoupons: callbackify(promises.getAccountActiveCoupons),
|
getAccountActiveCoupons: callbackify(promises.getAccountActiveCoupons),
|
||||||
getBillingInfo: callbackify(promises.getBillingInfo),
|
getBillingInfo: callbackify(promises.getBillingInfo),
|
||||||
getPaginatedEndpoint: callbackify(promises.getPaginatedEndpoint),
|
getPaginatedEndpoint: callbackify(promises.getPaginatedEndpoint),
|
||||||
|
|
|
@ -399,7 +399,7 @@ describe('RecurlyWrapper', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('createFixedAmmountCoupon', function () {
|
describe('createFixedAmountCoupon', function () {
|
||||||
beforeEach(async function () {
|
beforeEach(async function () {
|
||||||
this.couponCode = 'a-coupon-code'
|
this.couponCode = 'a-coupon-code'
|
||||||
this.couponName = 'a-coupon-name'
|
this.couponName = 'a-coupon-name'
|
||||||
|
@ -409,7 +409,7 @@ describe('RecurlyWrapper', function () {
|
||||||
this.apiRequest = sinon
|
this.apiRequest = sinon
|
||||||
.stub(this.RecurlyWrapper.promises, 'apiRequest')
|
.stub(this.RecurlyWrapper.promises, 'apiRequest')
|
||||||
.resolves()
|
.resolves()
|
||||||
await this.RecurlyWrapper.promises.createFixedAmmountCoupon(
|
await this.RecurlyWrapper.promises.createFixedAmountCoupon(
|
||||||
this.couponCode,
|
this.couponCode,
|
||||||
this.couponName,
|
this.couponName,
|
||||||
this.currencyCode,
|
this.currencyCode,
|
||||||
|
|
Loading…
Reference in a new issue