We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc384ca commit e467ac1Copy full SHA for e467ac1
spec/amadeus/namespaces.test.js
@@ -328,6 +328,12 @@ describe('Namespaces', () => {
328
.toHaveBeenCalledWith('/v3/travel/trip-parser', {});
329
});
330
331
+ it('.amadeus.travel.tripParser.fromFile', () => {
332
+ const utf8Buffer = Buffer.from('file contént', 'utf8');
333
+ const base64Encoding = amadeus.travel.tripParser.fromFile(utf8Buffer);
334
+ expect(base64Encoding).toEqual('ZmlsZSBjb250w6ludA==');
335
+ });
336
+
337
it('.amadeus.shopping.flightDates.get', () => {
338
amadeus.client.get = jest.fn();
339
amadeus.shopping.flightDates.get();
0 commit comments