feat(library): two-line candidate picker entries with per-type detail
This commit is contained in:
parent
16b8b242b8
commit
1e4567e844
12 changed files with 219 additions and 18 deletions
|
|
@ -329,8 +329,8 @@ describe('gameSpec.resolve', () => {
|
|||
const result = await gameSpec.resolve(ctxFor({ title: '7 Billion Humans' }), deps);
|
||||
expect(result).toEqual({
|
||||
candidates: [
|
||||
{ label: 'Foo', patches: { steam_appid: '1' } },
|
||||
{ label: 'Bar', patches: { steam_appid: '2' } },
|
||||
{ label: 'Foo', detail: 'Steam appid 1', patches: { steam_appid: '1' } },
|
||||
{ label: 'Bar', detail: 'Steam appid 2', patches: { steam_appid: '2' } },
|
||||
],
|
||||
});
|
||||
expect(deps.logCalls.some(m => m.includes('RAWG'))).toBe(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue