travelhubapi/travelhubapi-node-sdk

View on GitHub

Showing 2 of 5 total issues

Function book has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports.book = function book(hotelSDK, hotel, checkIn, checkOut) {
  const guests = {
    items: [
      {
        firstName: 'Fulano',
Severity: Minor
Found in examples/src/hotel/methods.js - About 1 hr to fix

    Function load has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function load(nock) {
      nock(TravelhubApiSDKHotel.homologHost, {
        reqheaders: {
          authorization: 'Bearer accessToken',
        },
    Severity: Minor
    Found in test/mock/travelhubapi-hotel.mock.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language