Skip to content

Norfaer/TestTask

Repository files navigation

TestTask

Install and launch

Run following commands:

npm install
npm run test

Test config file.

In test.config.js file you can set different parameters for testing.

  • For generative tests of "coins task" you can set the depth and range of the test
  • For "hierarchy" task you can set the input and expected result data.

Concerning test tasks.

I have added some validation rules for the input (they are included to the tests also). The validation rules do not include type checks since this can be achieved by using TypeScript instead of vanilla JS. Also in the first task i made it possible to use variable array of available coin values as the second parameter of the function. As long as it includes "1" coin. Also i added some console output of the test cases (which should not be on live environment)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published