Given a Stack
and a Queue
JavaScript classes, implement the Queue.dequeue()
method w/ a
testing first approach.
N.B.: type
npm t
to run the tests
-
add "enqueu 2, dequeue" test
-
add "enqueu 1, dequeue, enqueue 2, dequeue, euqueue 3, dequeue" test
-
add "enqueu 1, enqueue 2, dequeue, dequeue" test
-
add "enqueu 1, enqueue 2, enqueue 3, dequeue, dequeue, dequeue, enqueue 4, enqueue 5, dequeue, dequeue" test
-
add "enqueu 1, enqueue 2, enqueue 3, dequeue, enqueue 4, enqueue 5, dequeue, dequeue, dequeue, dequeue" test
-
add "enqueue undefined, dequeue" test
-
add "dequeue" test