{"id":21050771,"url":"https://github.com/jamal-saadeddin/calc-app-unit-testing","last_synced_at":"2025-10-12T18:21:55.889Z","repository":{"id":240557881,"uuid":"801168971","full_name":"Jamal-SaadEddin/calc-app-unit-testing","owner":"Jamal-SaadEddin","description":"A simple calculator developed during an internship at Foothill, designed to practice unit testing.","archived":false,"fork":false,"pushed_at":"2024-05-20T11:54:56.000Z","size":5174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T18:35:30.965Z","etag":null,"topics":["aaa-testing","test-driven-development","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jamal-SaadEddin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-15T18:15:21.000Z","updated_at":"2024-05-20T11:54:59.000Z","dependencies_parsed_at":"2024-11-19T15:47:50.656Z","dependency_job_id":"fa874801-f465-446d-9765-c08aca68d918","html_url":"https://github.com/Jamal-SaadEddin/calc-app-unit-testing","commit_stats":null,"previous_names":["jamal-saadeddin/calc-app-unit-testing"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamal-SaadEddin%2Fcalc-app-unit-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamal-SaadEddin%2Fcalc-app-unit-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamal-SaadEddin%2Fcalc-app-unit-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jamal-SaadEddin%2Fcalc-app-unit-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jamal-SaadEddin","download_url":"https://codeload.github.com/Jamal-SaadEddin/calc-app-unit-testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243495496,"owners_count":20299923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aaa-testing","test-driven-development","unit-testing"],"created_at":"2024-11-19T15:47:42.313Z","updated_at":"2025-10-12T18:21:50.849Z","avatar_url":"https://github.com/Jamal-SaadEddin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Calculator\n\n## Overview\nThis project is part of an internship assignment at Foothill, focused on developing a JavaScript calculator with an emphasis on writing comprehensive unit tests. The calculator supports basic arithmetic operations such as addition, subtraction, multiplication, and division, and includes robust input validation.\n\n## Features\n- Performs addition, subtraction, multiplication, and division.\n- Validates input types and operators to ensure correct calculations.\n- Handles edge cases like division by zero and numbers greater than 1000, which are ignored.\n- Developed with test-driven development techniques to ensure functionality and reliability.\n\n## Usage\nTo use the calculator, require the module in your JavaScript code and pass parameters as follows:\n```javascript\n{\n  num1: \u003cnumber\u003e,\n  operation1: \u003cstring\u003e,\n  num2: \u003cnumber\u003e,\n  operation2: \u003cstring, optional\u003e,\n  num3: \u003cnumber, optional\u003e\n}\n```\nThe calculator executes the operations in sequence and returns the computed result.\n\n## Installation\nClone this repository to your local machine to get started. Ensure you have Node.js installed to run the calculator.\n\n## Testing\nThe project includes a `calculator.test.js` file, which demonstrates how to write unit tests for each function and scenario. It is a vital part of the internship's focus on learning test-driven development and achieving high code quality.\n\n## Authors\n- [Jamal SaadEddin](github.com/Jamal-SaadEddin)\n\n## Acknowledgements\n- This task is part of the Foothill Technology Solutions Internship Cycle.\n- Big thanks to my trainer [@Huthaifa](https://github.com/Huthaifa-Dev)\n\u003cimg src=\"https://github.com/Jamal-SaadEddin/TodoTick/assets/104212352/9d3c83b0-5ea8-46ff-93e8-f1504af9dc67\" width=\"400\" alt=\"foothill logo\"\u003e\n\n\n---\n\nThank you for visiting my project! Feel free to star or contribute to the repository if you find it useful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamal-saadeddin%2Fcalc-app-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamal-saadeddin%2Fcalc-app-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamal-saadeddin%2Fcalc-app-unit-testing/lists"}