mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
Always skip document selector for single valid document; remove toggle and info text (#1622)
* Remove skip info text * prettier * fix test
This commit is contained in:
@@ -184,15 +184,23 @@ describe('ProvingScreenRouter', () => {
|
||||
});
|
||||
|
||||
it('routes to the document selector when skipping is disabled', async () => {
|
||||
const passport = createMetadata({
|
||||
const passport1 = createMetadata({
|
||||
id: 'doc-1',
|
||||
documentType: 'us',
|
||||
isRegistered: true,
|
||||
});
|
||||
const passport2 = createMetadata({
|
||||
id: 'doc-2',
|
||||
documentType: 'gb',
|
||||
isRegistered: true,
|
||||
});
|
||||
const catalog: DocumentCatalog = {
|
||||
documents: [passport],
|
||||
documents: [passport1, passport2],
|
||||
};
|
||||
const allDocs = createAllDocuments([createDocumentEntry(passport)]);
|
||||
const allDocs = createAllDocuments([
|
||||
createDocumentEntry(passport1),
|
||||
createDocumentEntry(passport2),
|
||||
]);
|
||||
|
||||
mockLoadDocumentCatalog.mockResolvedValue(catalog);
|
||||
mockGetAllDocuments.mockResolvedValue(allDocs);
|
||||
|
||||
Reference in New Issue
Block a user