Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 6 hours 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! ๐ก
- Host: GitHub
- URL: https://github.com/jagoda11/simple-js-test-library
- Owner: Jagoda11
- Created: 2021-03-28T13:17:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-17T22:30:47.000Z (8 months ago)
- Last Synced: 2024-05-02T05:48:25.587Z (6 months ago)
- Topics: education, javascript, js-test, node-js, pirple, test-library, test-runner, unit-testing, utility-function
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 โ.