Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 11bd7c8

Browse files
committed
chore: add prefix to pre checkout placeholder
1 parent 36e4d3c commit 11bd7c8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
const resource = require('./firestore/nested-firestore-resource')
44
const htmlEncode = require('./html-encoder')
55
const flattenObject = require('./firestore/flatten')
6-
const PLACEHOLDER_DESCRIPTION = 'pre-checkout-placeholder'
6+
const DESCRIPTION_PREFIX = 'pi/'
7+
const PLACEHOLDER_DESCRIPTION = `${DESCRIPTION_PREFIX}pre-checkout-placeholder`
78
const PLACEHOLDER_START_DATE = new Date('2020-01-01')
89

910
const SUBSCRIPTION_ACTIVE_STATUS = [

test/spec/index.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('PaddleIntegration', () => {
100100
expect(sub.status).to.have.length(4)
101101

102102
const status0 = sub.status[0]
103-
expect(status0.description).to.equal('pre-checkout-placeholder')
103+
expect(status0.description).to.equal('pi/pre-checkout-placeholder')
104104

105105
const status1 = sub.status[1]
106106
expect(status1.alert_id).to.equal(createPayload.alert_id)

0 commit comments

Comments
 (0)