{"size": 390, "ext": "js", "max_stars_repo_path": "tests/02-linkedLists/2-2.2.tests.js", "max_stars_repo_name": "eddiechou/ctci", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/02-linkedLists/2-2.2.tests.js", "max_issues_repo_name": "eddiechou/ctci", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/02-linkedLists/2-2.2.tests.js", "max_forks_repo_name": "eddiechou/ctci", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.375, "max_line_length": 64, "alphanum_fraction": 0.6025641026}
var assert = chai.assert;
var expect = chai.expect;

describe('[2.2] kthLast', function() {
  it('should remove duplicates from a linked list', function() {
    var head = new Node(1);
    var two = new Node(2);
    var three = new Node(3);
    var two2 = new Node(2);

    head.next = two;
    two.next = three;
    three.next = two2;
    expect(kthToLast(head, 1)).to.eql(two2);
  });
});