Schema: portalFeatures-Zustände und newsPosts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c55e6f2dfe
commit
85bee3190c
3 files changed
+73
-1
No files matched your search
@@ -287,3 +287,15 @@ test('Stripe-Nachbau: failNext lässt den nächsten passenden Aufruf scheitern',
|
||||
await assert.rejects(stripe.subscriptions.update('sub_f', { metadata: { a: 'd' } }), (e) => e.statusCode === 402)
|
||||
assert.equal((await stripe.subscriptions.retrieve('sub_f')).metadata.a, 'c')
|
||||
})
|
||||
|
||||
test('schema_funktionen_news', async () => {
|
||||
const { schemaKeys } = await import('./support/schema.js')
|
||||
const features = schemaKeys('portalFeatures')
|
||||
for (const k of ['customerId', 'projectId', 'featureKey', 'enabled', 'unlockedByPurchase', 'purchaseStatus', 'state', 'siteKey', 'ticketId', 'stripeSessionId', 'stripeInvoiceId', 'invoiceUrl', 'orderedAt', 'activatedAt', 'disabledAt', 'consentText', 'consentAt', 'consentIp', 'consentUserAgent', 'adminNote']) {
|
||||
assert.ok(features.includes(k), `portalFeatures.${k}`)
|
||||
}
|
||||
const news = schemaKeys('newsPosts')
|
||||
for (const k of ['customerId', 'projectId', 'type', 'title', 'text', 'imageId', 'paper', 'duration', 'visibleFrom', 'visibleUntil', 'takenDownAt', 'createdAt', 'updatedAt']) {
|
||||
assert.ok(news.includes(k), `newsPosts.${k}`)
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user