--- Build: pass | Tests: FAIL — Tests 8 failed | 2082 passed | 4 skipped (2094)
11 lines
423 B
TypeScript
11 lines
423 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import { isValidStripeTestKey } from '../src/stripe-config.js';
|
|
|
|
describe('setup onboarding helpers', () => {
|
|
it('accepts restricted Stripe test keys for onboarding', () => {
|
|
expect(isValidStripeTestKey('rk_test_12345')).toBe(true);
|
|
expect(isValidStripeTestKey('rk_live_12345')).toBe(false);
|
|
expect(isValidStripeTestKey('sk_test_12345')).toBe(false);
|
|
});
|
|
});
|