Jasmine: A Beginner-Friendly Guide on Pure Functions and Basic Testsby@marcinwosinek

Jasmine: A Beginner-Friendly Guide on Pure Functions and Basic Tests

tldt arrow
EN
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Pure functions are the perfect case for unit testing. For a given input, we always expect the same output—there is no internal state involved. Let’s take a look at a few examples and some simple tests that check if the methods work as expected.
featured image - Jasmine: A Beginner-Friendly Guide on Pure Functions and Basic Tests
Marcin Wosinek HackerNoon profile picture

@marcinwosinek

Marcin Wosinek

I'm a JavaScript developer. I'm here to teach you useful skills, so you can succeed in your work & private projects.


Receive Stories from @marcinwosinek

react to story with heart
Marcin Wosinek HackerNoon profile picture
by Marcin Wosinek @marcinwosinek.I'm a JavaScript developer. I'm here to teach you useful skills, so you can succeed in your work & private projects.
Read my stories

RELATED STORIES

L O A D I N G
. . . comments & more!