Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy #8

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
- React JS

## Live Demo (if available)
[HEROKU](https://mathmagiciansreact.herokuapp.com/)
[NETLIFY](https://incomparable-toffee-28ad43.netlify.app/)

## Getting Started

Expand Down
89 changes: 82 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"big.js": "^6.2.1",
"react": "^18.2.0",
Expand Down Expand Up @@ -43,13 +42,15 @@
"@babel/plugin-syntax-jsx": "^7.18.6",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@testing-library/react": "^13.3.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-no-mixed-operators": "^1.1.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"react-test-renderer": "^18.2.0",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^21.0.0",
"stylelint-csstree-validator": "^1.9.0",
Expand Down
140 changes: 140 additions & 0 deletions src/__tests__/__snapshots__/calculator.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Calculator Renders Calculator 1`] = `
<div
className="calculator"
>
<div
className="display"
onChange={[Function]}
>
0
</div>
<div
className="simpleOperators"
>
<button
onClick={[Function]}
type="button"
>
AC
</button>
<button
onClick={[Function]}
type="button"
>
+/-
</button>
<button
onClick={[Function]}
type="button"
>
%
</button>
</div>
<div
className="operators"
>
<button
onClick={[Function]}
type="button"
>
÷
</button>
<button
onClick={[Function]}
type="button"
>
x
</button>
<button
onClick={[Function]}
type="button"
>
-
</button>
<button
onClick={[Function]}
type="button"
>
+
</button>
<button
onClick={[Function]}
type="button"
>
=
</button>
</div>
<div
className="digits"
>
<button
onClick={[Function]}
type="button"
>
1
</button>
<button
onClick={[Function]}
type="button"
>
2
</button>
<button
onClick={[Function]}
type="button"
>
3
</button>
<button
onClick={[Function]}
type="button"
>
4
</button>
<button
onClick={[Function]}
type="button"
>
5
</button>
<button
onClick={[Function]}
type="button"
>
6
</button>
<button
onClick={[Function]}
type="button"
>
7
</button>
<button
onClick={[Function]}
type="button"
>
8
</button>
<button
onClick={[Function]}
type="button"
>
9
</button>
<button
onClick={[Function]}
type="button"
>
0
</button>
<button
onClick={[Function]}
type="button"
>
.
</button>
</div>
</div>
`;
Loading