v0.5.11: версия + фикс теста MOCK_USERS.length 3→4

This commit is contained in:
2026-06-02 17:49:07 +03:00
parent 453e25e40f
commit 4694b7e8a6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.5.10",
"version": "0.5.11",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -68,7 +68,7 @@ section('config.js');
const { MOCK_USERS, backUrl } = require('../src/config');
test('MOCK_USERS.length === 3', MOCK_USERS.length, 3);
test('MOCK_USERS.length === 4', MOCK_USERS.length, 4);
test('admin clientId', MOCK_USERS.some(u => u.clientId === 'WZ01112'), true);
test('all have companyId', MOCK_USERS.every(u => !!u.companyId), true);
test('admin backUrl has company', backUrl(true, 5, {}).includes('company=5'), true);