SHA256
CORE/CONTENT test5593 и адаптация UI
This commit is contained in:
@@ -11,11 +11,10 @@ const api=read('shine-UI/js/services/registration-v2-api.js');
|
||||
const ops=['GetNamespaces','CheckRegistrationLogin','CheckRegistrationEmail',
|
||||
'StartFreeRegistration','ConfirmFreeRegistration','GetRegistrationStatus'];
|
||||
test('в серверном реестре ровно согласованные шесть операций, каждый op имеет request type',()=>{
|
||||
for(const op of ops) {
|
||||
assert.ok(registry.includes(`Map.entry("${op}", new Net_Registration_Handler`));
|
||||
assert.ok(registry.includes(`Map.entry("${op}", Net_Registration_Request.class`));
|
||||
}
|
||||
assert.doesNotMatch(registry,/Map\.entry\("CheckRegistrationAvailability"/);
|
||||
const registrationRoutes = [...registry.matchAll(/add\(handlers,types,"(\w+)",(?:[\w.]+\.)?Net_Registration_Request\.class,new (?:[\w.]+\.)?Net_Registration_Handler\("(\w+)"\)\);/g)];
|
||||
assert.deepEqual(registrationRoutes.map(m => m[1]).sort(), [...ops].sort());
|
||||
for (const [, route, handlerOp] of registrationRoutes) assert.equal(route, handlerOp);
|
||||
assert.doesNotMatch(registry,/add\(handlers,types,"CheckRegistrationAvailability"/);
|
||||
});
|
||||
test('проверки login и email независимы и не отправляют лишних данных',()=>{
|
||||
assert.match(api,/checkRegistrationLogin = .*call\('CheckRegistrationLogin', \{ fullLogin:/);
|
||||
|
||||
Reference in New Issue
Block a user