mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-30 17:32:26 +00:00
- Add explicit security comment to config/instance-config.js - Add regression test to verify IS_VERBOSE_DEV_MODE is false - Verify IS_DEV_MODE is false Note: The configuration file was found to be already set to `false` in the environment. This change enforces the policy. Co-authored-by: PR0M3TH3AN <[email protected]>
12 lines
499 B
JavaScript
12 lines
499 B
JavaScript
import { test } from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { IS_DEV_MODE, IS_VERBOSE_DEV_MODE } from '../../config/instance-config.js';
|
|
|
|
test('Security configuration: IS_VERBOSE_DEV_MODE must be false', () => {
|
|
assert.strictEqual(IS_VERBOSE_DEV_MODE, false, 'IS_VERBOSE_DEV_MODE should be false in production');
|
|
});
|
|
|
|
test('Security configuration: IS_DEV_MODE must be false', () => {
|
|
assert.strictEqual(IS_DEV_MODE, false, 'IS_DEV_MODE should be false in production');
|
|
});
|