mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Added `tests/unit/security-config.test.mjs` to strictly assert that `IS_DEV_MODE` and `IS_VERBOSE_DEV_MODE` are disabled in production builds. - Verified that `config/instance-config.js` is correctly set to `false`. Co-authored-by: PR0M3TH3AN <[email protected]>
12 lines
547 B
JavaScript
12 lines
547 B
JavaScript
import { test } from 'node:test';
|
|
import assert from 'node:assert';
|
|
import { IS_DEV_MODE, IS_VERBOSE_DEV_MODE } from '../../config/instance-config.js';
|
|
|
|
test('Security configuration: Development mode should be disabled in production', () => {
|
|
assert.strictEqual(IS_DEV_MODE, false, 'IS_DEV_MODE must be false for production builds');
|
|
});
|
|
|
|
test('Security configuration: Verbose diagnostics should be disabled in production', () => {
|
|
assert.strictEqual(IS_VERBOSE_DEV_MODE, false, 'IS_VERBOSE_DEV_MODE must be false for production builds');
|
|
});
|