Changeset c3d12a6 in Klonkt for test/paid-patron.test.js
- Timestamp:
- 07/21/2026 02:07:18 AM (7 weeks ago)
- Branches:
- main
- Children:
- 9019a3e
- Parents:
- 603d246
- git-author:
- Robin <roboburr@…> (07/21/2026 02:07:07 AM)
- git-committer:
- Robin <roboburr@…> (07/21/2026 02:07:18 AM)
- File:
-
- 1 edited
-
test/paid-patron.test.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
test/paid-patron.test.js
r603d246 rc3d12a6 73 73 }); 74 74 75 test('patreonUrl: set, kept on unrelated save, cleared on empty', () => { 76 PP.saveOwnerConfig('s2', { clientId: 'c', clientSecret: 's', campaignId: '7', patreonUrl: 'https://patreon.com/x' }); 77 assert.equal(PP.patreonUrl('s2'), 'https://patreon.com/x'); 78 // a save that does NOT mention patreonUrl (e.g. token refresh) keeps it 79 PP.saveOwnerConfig('s2', { defaultMinCents: 200 }); 80 assert.equal(PP.patreonUrl('s2'), 'https://patreon.com/x'); 81 // an explicit empty value clears it 82 PP.saveOwnerConfig('s2', { patreonUrl: '' }); 83 assert.equal(PP.patreonUrl('s2'), null); 84 }); 85 75 86 test('deleteEntitlement removes the row (forget-passkey path)', () => { 76 87 Passkey.storeEntitlement({ credentialId: 'cred3', siteId: 's1', publicKey: 'PK', minCents: 100 });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)