mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Merge pull request #2234 from PR0M3TH3AN/security-fix-disable-dev-mode-6861215856535760775
🔒 Security Fix: Ensure IS_DEV_MODE is disabled in production
This commit is contained in:
1 file changed
+5
-5
@@ -1,11 +1,11 @@
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import assert from 'node:assert';
|
||||
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: 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: IS_DEV_MODE must be false', () => {
|
||||
assert.strictEqual(IS_DEV_MODE, false, 'IS_DEV_MODE should be false in production');
|
||||
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');
|
||||
});
|
||||
Reference in new issue
Block a user