Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jagoda11/simple-js-test-library

๐Ÿ“š Simple-JS-Test-Library: Dive into JavaScript testing with this easy-to-understand library ๐Ÿ› ๏ธ, featuring a suite of utility functions and their tests ๐Ÿงช. Perfect for mastering the basics of unit testing! ๐Ÿ’ก
https://github.com/jagoda11/simple-js-test-library

education javascript js-test node-js pirple test-library test-runner unit-testing utility-function

Last synced: about 1 month ago
JSON representation

๐Ÿ“š Simple-JS-Test-Library: Dive into JavaScript testing with this easy-to-understand library ๐Ÿ› ๏ธ, featuring a suite of utility functions and their tests ๐Ÿงช. Perfect for mastering the basics of unit testing! ๐Ÿ’ก

Awesome Lists containing this project

README

        

# ๐Ÿš€ Simple-JS-Test-Library ๐Ÿ“š

![Open Issues](https://img.shields.io/github/issues/Jagoda11/Simple-JS-Test-Library?style=flat-square&color=orange)
![Last Commit](https://img.shields.io/github/last-commit/Jagoda11/Simple-JS-Test-Library/master?style=flat-square&color=blue)

๐Ÿ“ Homework Assignment #5

## ๐Ÿ“ƒ Details:

Create a new empty repository with a /test folder ๐Ÿ“, and an /app folder ๐Ÿ“‚.

Inside of the app folder, create a library (lib.js) ๐Ÿ“š and fill it with simple functions. These can serve any purpose you wish, such as generating a random number ๐ŸŽฒ, or checking whether or not a string is a palindrome. Really, any kind of functions will do.

Inside the /test folder, create a simple test runner ๐Ÿƒโ€โ™€๏ธ, and then write tests for the functions in your lib.js file. You should try to test that they return (or callback) the correct value when passed valid parameters โœ”๏ธ, and that they return a predictable value (and don't crash) when passed invalid parameters โŒ.