mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
[SELF-654] feat: add native modules (#919)
* feat: add ios native modules * fix: extractMRZ * Add android OCR native module * wire native mrz module with adapter * wire Native modules and fix tests * fixes * fix license header logic * fix tests * fix types * fix: ci test * fix: android build ci * fix: ios build CI * add podfile.lock * add yarn.lock * update lock files * add yarn.lock * add license * order methods * update lock * pipeline fixes * prettier * update lock file * fix native modules on external apps * bundle @selfxyz/common into mobile-sdk-alpha * chore: address yarn lock issues (#1004) * address yarn lock issues * fix postinstall * update lock * fix build issues * fix pipeline issue * fix ci * fix bad merge * fix android ci * fix ci errors * fix mobile sdk ci. stop gap fix for now until we create a package * tweaks * retry aapt2 approach * use ^0.8.4 instead of ^0.8.0 due to the use of custom errors * workflow fixes * fix file * update * fix ci * test ci fix * fix test --------- Co-authored-by: Justin Hernandez <transphorm@gmail.com> Co-authored-by: Justin Hernandez <justin.hernandez@self.xyz>
This commit is contained in:
@@ -183,8 +183,9 @@ describe('validateDocument - Real mobile-sdk-alpha Integration (PII-safe)', () =
|
||||
it('parses a valid MRZ string', () => {
|
||||
const client = createTestClient();
|
||||
const info = client.extractMRZInfo(validMrz);
|
||||
expect(info.passportNumber).toBe('L898902C3');
|
||||
expect(info.validation.overall).toBe(true);
|
||||
expect(info.documentNumber).toBe('L898902C3');
|
||||
expect(info.validation).toBeDefined();
|
||||
expect(info.validation?.overall).toBe(true);
|
||||
});
|
||||
|
||||
it('throws on malformed MRZ input', () => {
|
||||
|
||||
Reference in New Issue
Block a user