{"size": 404, "ext": "js", "max_stars_repo_path": "functions/aircraft/mergeDateAndTime.spec.js", "max_stars_repo_name": "odch/aircraft-logbook", "max_stars_repo_stars_event_min_datetime": "2021-02-12T15:47:50.000Z", "max_stars_repo_stars_event_max_datetime": "2021-02-12T15:47:50.000Z", "max_issues_repo_path": "functions/aircraft/mergeDateAndTime.spec.js", "max_issues_repo_name": "odch/aircraft-logbook", "max_issues_repo_issues_event_min_datetime": "2018-08-26T09:06:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T09:59:33.000Z", "max_forks_repo_path": "functions/aircraft/mergeDateAndTime.spec.js", "max_forks_repo_name": "odch/aircraft-logbook", "max_forks_repo_forks_event_min_datetime": "2019-02-06T11:11:06.000Z", "max_forks_repo_forks_event_max_datetime": "2020-09-13T11:37:12.000Z"}
{"max_stars_count": 1, "max_issues_count": 178, "max_forks_count": 2, "avg_line_length": 31.0769230769, "max_line_length": 76, "alphanum_fraction": 0.6262376238}
const moment = require('moment-timezone')
const mergeDateAndTime = require('./mergeDateAndTime')

describe('aircraft', () => {
  describe('mergeDateAndTime', () => {
    it('should create a JS date for the given date and time string', () => {
      expect(
        mergeDateAndTime('2018-12-15', '2018-12-14 14:00', 'Europe/Zurich')
      ).toEqual(moment('2018-12-15T14:00+01').toDate())
    })
  })
})
