bolah2009 / js-testing

Testing practice using jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maintainability Test Coverage Build Status codecov

PROJECT: Testing Practice

This is the sixth project of the Main JavaScript curriculum at Microverse - @microverseinc

This is the sixth project in the Javascript course

The objective is to write tests and create the following function:

  • capitalise(string): takes a string and returns that string with the first character capitalized when it's a sentence, it capitalises each word

  • reverseString(string): takes a string and returns it reversed

  • calculator: an object that contains the basic operations (or methods): add, subtract, divide, and multiply

  • caesar: the caesar function is a Caesar Cipher with the following features:

    • It takes a string and a key (as shift) and returns an object with two methods: encrypt and decrypt
    • The encrypt method returns an encrypted string while the decrypt takes an encrypted string and decrypts it with the key.
    • It keeps the same case when encrypting or decrypting
    • It encrypts only alphabets and keeps all other characters unchanged including punctuation
    • It wraps from z to a
  • calculator takes an array of numbers and returns an object with the following properties:

    • average
    • min
    • max
    • length

Development

  • Clone the project
git clone https://github.com/bolah2009/js-testing.git
  • Install Dependencies
npm install
  • Run test
npm run test

Authors

About

Testing practice using jest

License:MIT License


Languages

Language:JavaScript 100.0%