Fix typo in name of method

GitOrigin-RevId: fe8a2bcf5e577c001c4508b7bb010e1738ccc903
This commit is contained in:
andrew rumble 2024-07-09 11:18:33 +01:00 committed by Copybot
parent e08b0b3d9e
commit 0a62bc1239
2 changed files with 4 additions and 4 deletions

View file

@ -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),

View file

@ -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,