{"size": 550, "ext": "js", "max_stars_repo_path": "__tests__/codesignal/adjacentElementsProduct.spec.js", "max_stars_repo_name": "AlexandrPristupa/Today-I-Learned-", "max_stars_repo_stars_event_min_datetime": "2018-05-22T08:08:40.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-11T17:43:37.000Z", "max_issues_repo_path": "__tests__/codesignal/adjacentElementsProduct.spec.js", "max_issues_repo_name": "AlexandrPristupa/Today-I-Learned-", "max_issues_repo_issues_event_min_datetime": "2018-09-11T11:16:11.000Z", "max_issues_repo_issues_event_max_datetime": "2018-09-11T11:16:11.000Z", "max_forks_repo_path": "__tests__/codesignal/adjacentElementsProduct.spec.js", "max_forks_repo_name": "AlexandrPristupa/Today-I-Learned-", "max_forks_repo_forks_event_min_datetime": "2018-08-31T23:51:43.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-28T21:29:01.000Z"}
{"max_stars_count": 2, "max_issues_count": 1, "max_forks_count": 2, "avg_line_length": 30.5555555556, "max_line_length": 93, "alphanum_fraction": 0.6490909091}
import { adjacentElementsProduct } from '../../javascript/codesignal/adjacentElementsProduct'

describe('testing adjacentElementsProduct', () => {

  it('should be find the pair of adjacent elements', () => {
    expect(adjacentElementsProduct([3, 6, -2, -5, 7, 3])).toEqual(21)
  });

  it('should be find the pair of adjacent elements', () => {
    expect(adjacentElementsProduct([-1, -2])).toEqual(2)
  });

  it('should be find the pair of adjacent elements', () => {
    expect(adjacentElementsProduct([5, 1, 2, 3, 1, 4])).toEqual(6)
  });

});
