From 6a5ed26bd226d1f9510bfa8382212b20d87c15c9 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Thu, 5 Jul 2018 15:28:11 +0300 Subject: [PATCH] Extend DoublyLinkedListNode tests. --- .../doubly-linked-list/__test__/DoublyLinkedListNode.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data-structures/doubly-linked-list/__test__/DoublyLinkedListNode.test.js b/src/data-structures/doubly-linked-list/__test__/DoublyLinkedListNode.test.js index 0da8c8ce..f7f140d8 100644 --- a/src/data-structures/doubly-linked-list/__test__/DoublyLinkedListNode.test.js +++ b/src/data-structures/doubly-linked-list/__test__/DoublyLinkedListNode.test.js @@ -6,6 +6,7 @@ describe('DoublyLinkedListNode', () => { expect(node.value).toBe(1); expect(node.next).toBeNull(); + expect(node.previous).toBeNull(); }); it('should create list node with object as a value', () => {