v0.5.11: версия + фикс теста MOCK_USERS.length 3→4
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user