mirror of https://gitlab.com/m3f_usm/SmartStopAPK
22 lines
511 B
TypeScript
22 lines
511 B
TypeScript
![]() |
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",
|
||
|
});
|
||
|
});
|
||
|
});
|