Skip to content

Commit

Permalink
Merge pull request #487 from aranaravi/develop
Browse files Browse the repository at this point in the history
Removed the update demographic url
  • Loading branch information
aranaravi authored Sep 13, 2023
2 parents 3319d43 + 6da2076 commit 5459852
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 49 deletions.
54 changes: 54 additions & 0 deletions resident-ui/src/app/app-config.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { TestBed, async } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { AppConfigService } from './app-config.service';

describe('AppConfigService', () => {
let service: AppConfigService;
let httpTestingController: HttpTestingController;

beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [AppConfigService],
});
service = TestBed.get(AppConfigService);
httpTestingController = TestBed.get(HttpTestingController);
});

afterEach(() => {
httpTestingController.verify();
});

it('should be created', () => {
expect(service).toBeTruthy();
});

it('should load app config from JSON file', async(() => {
const mockResponse = {
baseUrl: 'https://example.com',
// ... other properties
};

service.loadAppConfig();

const req = httpTestingController.expectOne('./assets/config.json');
expect(req.request.method).toBe('GET');
req.flush(mockResponse);

expect(service.getConfig()).toEqual(mockResponse);
}));

it('should handle HTTP error when loading app config', async(() => {
service.loadAppConfig();

const req = httpTestingController.expectOne('./assets/config.json');
expect(req.request.method).toBe('GET');
req.error(new ErrorEvent('network error'));

// Handle the error as needed, e.g., by logging it.
spyOn(console, 'error');
expect(console.error).toHaveBeenCalled();
}));

// Add more test cases as needed for other scenarios and error handling
});
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "يمكن للمقيمين اختيار البيانات المراد مشاركتها مع أي من الشركاء المسجلين للاستفادة من مختلف الخدمات من الطرف الثالث.",
"auditEventId": "ADM-004"
},
{
"displayName": "تحديث بياناتي",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "يمكن للمقيمين تحديث البيانات الموجودة بالفعل المرتبطة بمعرّف UIN/VID الخاص بهم. يمكن تحديث البيانات التي يمكن تحديثها بما في ذلك الاسم والجنس وتاريخ الميلاد والعنوان والوثائق المرفوعة ورقم الهاتف وعنوان البريد الإلكتروني واللغة المفضلة ، إلخ.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": " Residents can choose the data to be shared with any of the registered partners to avail various third party services.",
"auditEventId": "ADM-004"
},
{
"displayName": "Update My Data",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "Residents can update the already existing data associated with their UIN/ VID. The data that can be updated includes name, gender, DOB, address, documents uploaded, phone number, email ID, preferred language, etc.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "Les résidents peuvent choisir les données à partager avec l'un des partenaires enregistrés pour bénéficier de divers services tiers.",
"auditEventId": "ADM-004"
},
{
"displayName": "Mettre à jour mes données",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "Les résidents peuvent mettre à jour les données déjà existantes associées à leur UIN/ VID. Les données pouvant être mises à jour incluent le nom, le genre, la date de naissance, l'adresse, les documents téléchargés, le numéro de téléphone, l'adresse e-mail, la langue préférée, etc.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/hin.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "निवासी विभिन्न तृतीय पक्ष सेवाओं का लाभ उठाने के लिए किसी भी पंजीकृत भागीदार के साथ साझा किए जाने वाले डेटा का चयन कर सकते हैं।",
"auditEventId": "ADM-004"
},
{
"displayName": "मेरा डेटा अपडेट करें",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "निवासियों के पास अपने UIN/ VID से जुड़े पहले से मौजूद डेटा को अपडेट करने का विकल्प है। इसमें नाम, लिंग, जन्म तिथि, पता, अपलोड किए गए दस्तावेज, फ़ोन नंबर, ईमेल आईडी, पसंदीदा भाषा, आदि को अपडेट किया जा सकता है।",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/kan.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "ವಿವಿಧ ಮೂರನೇ ವ್ಯಕ್ತಿಯ ಸೇವೆಗಳನ್ನು ಪಡೆಯಲು ಯಾವುದೇ ನೋಂದಾಯಿತ ಪಾಲುದಾರರೊಂದಿಗೆ ಹಂಚಿಕೊಳ್ಳಲು ನಿವಾಸಿಗಳು ಡೇಟಾವನ್ನು ಆಯ್ಕೆ ಮಾಡಬಹುದು.",
"auditEventId": "ADM-004"
},
{
"displayName": "ನನ್ನ ಡೇಟಾವನ್ನು ನವೀಕರಿಸಿ",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "ನಿವಾಸಿಗಳು ತಮ್ಮ UIN/VID ಯೊಂದಿಗೆ ಸಂಯೋಜಿತವಾಗಿರುವ ಈಗಾಗಲೇ ಅಸ್ತಿತ್ವದಲ್ಲಿರುವ ಡೇಟಾವನ್ನು ನವೀಕರಿಸಬಹುದು. ಅಪ್‌ಡೇಟ್ ಮಾಡಬಹುದಾದ ಡೇಟಾವು ಹೆಸರು, ಲಿಂಗ, DOB, ವಿಳಾಸ, ಅಪ್‌ಲೋಡ್ ಮಾಡಿದ ದಾಖಲೆಗಳು, ಫೋನ್ ಸಂಖ್ಯೆ, ಇಮೇಲ್ ID, ಆದ್ಯತೆಯ ಭಾಷೆ ಇತ್ಯಾದಿಗಳನ್ನು ಒಳಗೊಂಡಿರುತ್ತದೆ.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/spa.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": " Los residentes pueden elegir los datos que se compartirán con cualquiera de los socios registrados para aprovechar varios servicios de terceros.",
"auditEventId": "ADM-004"
},
{
"displayName": "Actualizar mis datos",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "Los residentes pueden actualizar los datos ya existentes asociados con su UIN/ VID. Los datos que se pueden actualizar incluyen nombre, género, fecha de nacimiento, dirección, documentos cargados, número de teléfono, dirección de correo electrónico, idioma preferido, etc.",
"auditEventId": "ADM-004"
}
]
},
Expand Down
7 changes: 0 additions & 7 deletions resident-ui/src/assets/i18n/tam.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"route": "uinservices/sharewithpartner",
"description": "பல்வேறு மூன்றாம் தரப்பு சேவைகளைப் பெற, பதிவுசெய்யப்பட்ட கூட்டாளர்களில் எவருடனும் பகிர வேண்டிய தரவை குடியிருப்பாளர்கள் தேர்வு செய்யலாம்.",
"auditEventId": "ADM-004"
},
{
"displayName": "எனது தரவைப் புதுப்பிக்கவும்",
"icon": "assets/images/updatedemographic.png",
"route": "uinservices/updatedemographic",
"description": "குடியிருப்பாளர்கள் தங்கள் UIN/VID உடன் ஏற்கனவே உள்ள தரவை புதுப்பிக்கலாம். புதுப்பிக்கப்படக்கூடிய தரவுகளில் பெயர், பாலினம், DOB, முகவரி, பதிவேற்றப்பட்ட ஆவணங்கள், தொலைபேசி எண், மின்னஞ்சல் ஐடி, விருப்பமான மொழி போன்றவை அடங்கும்.",
"auditEventId": "ADM-004"
}
]
},
Expand Down

0 comments on commit 5459852

Please sign in to comment.