js-algorithms/data-structures/tests/linked-lists.js

12 lines
256 B
JavaScript
Raw Normal View History

2015-07-24 06:44:18 +00:00
import chai from 'chai';
import {Node, List} from '../linked-lists';
chai.should();
test('Constructing new Lists', () => {
let list = new List(new Node(10, new Node(5)));
list.root.value.should.equal(10);
list.root.next.value.should.equal(5);
});