icons
This commit is contained in:
@@ -63,6 +63,7 @@ const SOUTH_GATE_POIS: LocationPointOfInterestContent[] = [
|
||||
enabled: true,
|
||||
resultTitle: 'Gate Watch',
|
||||
resultText: 'Only heard at the South Gate.',
|
||||
resultImg: '/images/npcs/graufurt-gate-watch.png',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -114,6 +115,19 @@ describe('WorldService.runLocalInteraction', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('includes the authored image when the interaction carries one', async () => {
|
||||
const service = createService(location(SOUTH_GATE_ID, SOUTH_GATE_POIS));
|
||||
|
||||
await expect(
|
||||
service.runLocalInteraction(CHARACTER_ID, 'gate-watch'),
|
||||
).resolves.toEqual({
|
||||
interactionKey: 'gate-watch',
|
||||
title: 'Gate Watch',
|
||||
text: 'Only heard at the South Gate.',
|
||||
img: '/images/npcs/graufurt-gate-watch.png',
|
||||
});
|
||||
});
|
||||
|
||||
it('settles travel before resolving which location the character stands at', async () => {
|
||||
const completeTravelIfDue = jest.fn().mockResolvedValue({ status: 'IDLE' });
|
||||
const service = createService(
|
||||
|
||||
Reference in New Issue
Block a user