Skip to content

karmeensec/Linked-list-implementation-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked-list-implementation-js

Singly Linked List implementation and Test driven development.

Methods and Test functions:

  • Adding to element to head of the List
  • Getting elements by specific index
  • Printing elements to the console
  • Adding elements by specific index
  • Removing elements from head
  • Removing elements by specific index

Tests were written by using Jest Framework.

Get more information about this JavaScript Testing Framework here - Jest DOCS

Run Locally

Go to the project directory

  cd linked-list-javascript

Install dependencies

  npm init -y
  npm install --save-dev jest

Start the server

  node app.js

Running Tests

To run tests, run the following command

  npm run test

Authors