SmartStopAPK/src/infraestructure/repositories/mappers/__tests__/toWhoAmIResponse.spec.ts

22 lines
511 B
TypeScript
Raw Normal View History

import toWhoAmIResponse from '../toWhoAmIResponse';
describe('whoamiMapper', () => {
it('should be defined', () => {
expect(toWhoAmIResponse).toBeDefined();
});
it('should map to WhoamIResponse', () => {
expect(
toWhoAmIResponse({
WhoamiResponse: {
NroParadero: '37477',
NombreParadero: "O'Higgins - entre Angol y Salas",
},
}),
).toMatchObject({
stopNumber: '37477',
stopName: "O'Higgins - entre Angol y Salas",
});
});
});