Skip to content

Commit 06f4056

Browse files
author
Caley Woods
committed
Better test verbiage
1 parent 098286d commit 06f4056

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎DataStructures/Linked List/LinkedList.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ test('we can delete from the linked list', () => {
5454
expect(ll.head).toEqual(null);
5555
});
5656

57-
test('we receive false when trying to delete from an empty linked list', () => {
57+
test('we receive false when trying to delete a non-existant node', () => {
5858
const ll = new LinkedList();
5959
expect (ll.deleteWithValue('repoName', 'nothing')).toBe(false);
6060
});
6161

62-
test('we receive true when trying to delete from an empty linked list', () => {
62+
test('we receive true when successfully deleting a node', () => {
6363
const ll = new LinkedList();
6464
const firstData = {'repoName': 'JavaScriptAlgorithms', 'owner': 'vJechsmayr'};
6565

0 commit comments

Comments
 (0)