Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
317 commits
Select commit Hold shift + click to select a range
f7e7e8a
fixing snapshot test
shubmittal Nov 5, 2018
75048e7
after setting the right env
AishwaryaSingh Nov 5, 2018
fb5cb84
Merge branch 'developement' of https://github.com/OneCommunityGlobal/…
AishwaryaSingh Nov 5, 2018
6546fd6
error message
shubmittal Nov 5, 2018
7bf89f9
dashboard
shubmittal Nov 5, 2018
a20e2dd
login test fixed
shubmittal Nov 5, 2018
eb08cd2
dashboard
shubmittal Nov 6, 2018
c597ee8
dashboard class
shubmittal Nov 6, 2018
72ac4fb
Profile Picture + Name in Header
AishwaryaSingh Nov 12, 2018
d4e2533
Merge branch 'developement' of https://github.com/OneCommunityGlobal/…
AishwaryaSingh Nov 12, 2018
1daa3a9
resoleved dashboard (1)
AishwaryaSingh Nov 12, 2018
24491e1
changed env APIENDPOINT
AishwaryaSingh Nov 12, 2018
ea91e87
header
AishwaryaSingh Nov 13, 2018
89a727e
Update package.json
shubmittal Nov 13, 2018
fce807e
Update package.json
shubmittal Nov 13, 2018
e46434c
Update package.json
shubmittal Nov 13, 2018
535c605
Update package.json
shubmittal Nov 13, 2018
0027e08
Update package.json
shubmittal Nov 13, 2018
2b53fd4
Update App.test.js
shubmittal Nov 13, 2018
39f28f0
changes for force password
shubmittal Nov 14, 2018
3294ab6
removed unused imports
shubmittal Nov 14, 2018
5f685c1
Merge branch 'developement'
shubmittal Nov 14, 2018
f073edb
continous calls to cdm in lederboard
shubmittal Nov 14, 2018
8aa6242
correcting logError
shubmittal Nov 14, 2018
fa5b1bd
disabling leaderboard to nvestgate infinite calls
shubmittal Nov 14, 2018
ecccdb0
diabling test
shubmittal Nov 14, 2018
28fbeb6
uncommenting leaderboard
shubmittal Nov 14, 2018
89710b3
SEPERATED SENTRY URLS
shubmittal Nov 15, 2018
ab0430f
checking process.env
shubmittal Nov 15, 2018
c4b3b7d
process.env
shubmittal Nov 15, 2018
29b055e
UPDATING ENV TO STIRNG
shubmittal Nov 15, 2018
73829b1
fixed user unable to move to dashboard
shubmittal Nov 15, 2018
6155245
removed console.log
shubmittal Nov 15, 2018
c053c55
investigating DSN issue
shubmittal Nov 15, 2018
3619d05
DSN issue
shubmittal Nov 15, 2018
c80084a
checking dsn
shubmittal Nov 15, 2018
424f687
test
shubmittal Nov 15, 2018
f03012a
dsn
shubmittal Nov 15, 2018
3adb043
remove tw sting
shubmittal Nov 15, 2018
ae742e1
dsn
shubmittal Nov 15, 2018
5e8af19
REVERT CHANGES
shubmittal Nov 15, 2018
6c25459
cors header
shubmittal Nov 16, 2018
be1952f
checking api calls
shubmittal Nov 16, 2018
c80e7ee
token
shubmittal Nov 16, 2018
d98d233
token issues
shubmittal Nov 16, 2018
ce00f8d
reverted changes
shubmittal Nov 16, 2018
eed0322
Fixed bug in test script to run cross platform
tyjcalvert Nov 17, 2018
734a4b6
Merge pull request #1 from OneCommunityGlobal/fix-test-script-bug
tyjcalvert Nov 17, 2018
8dd88fa
Merge pull request #2 from OneCommunityGlobal/master
tyjcalvert Nov 17, 2018
aedb71f
Merge pull request #3 from OneCommunityGlobal/developement
tyjcalvert Nov 17, 2018
7e35632
Header name bug fix.
AishwaryaSingh Nov 18, 2018
83416e4
API END POINT changed in service.j
AishwaryaSingh Nov 18, 2018
abc0e76
Update README.md
shubmittal Nov 19, 2018
35d616f
added basic redux
tyjcalvert Nov 19, 2018
d53e8f5
merge
shubmittal Nov 21, 2018
a605142
restoring test scripts
shubmittal Nov 21, 2018
270f3fa
Update Header.test.js
shubmittal Nov 21, 2018
f14e7ce
Update Header.test.js
shubmittal Nov 21, 2018
e42ed3c
Update Header.test.js
shubmittal Nov 21, 2018
de3801e
Merge branch 'master' of github.com:OneCommunityGlobal/HighestGoodNet…
tyjcalvert Nov 26, 2018
c22315f
restructured redux setup to pass tests
tyjcalvert Nov 26, 2018
1b9ea62
WIP
shubmittal Nov 27, 2018
8f7d13d
update password- unit test WIP
shubmittal Nov 27, 2018
d781c78
update password
shubmittal Nov 27, 2018
bb6d391
improved coverage for update pasword tests
shubmittal Nov 28, 2018
b9ee18f
cecking why update isnot getting userid
shubmittal Nov 28, 2018
a095fad
test
shubmittal Nov 28, 2018
bd1dad7
yml updates
shubmittal Nov 28, 2018
210521d
removed test changes
shubmittal Nov 28, 2018
3cff9f8
fixed label for current password
shubmittal Nov 28, 2018
6cedc32
fixed typos
shubmittal Nov 28, 2018
abb70e5
typos
shubmittal Nov 28, 2018
c47e20a
imporved coverage for updatepassword
shubmittal Nov 28, 2018
724ecbe
merge dev
shubmittal Nov 28, 2018
ee07ce6
added script for running tests in watch mode
shubmittal Nov 28, 2018
10ff079
updated test
shubmittal Nov 29, 2018
7dc0b04
imporved schema for password
shubmittal Dec 2, 2018
c8915b7
removed unncecasary code
shubmittal Dec 2, 2018
4be67fc
added all get routes to Redux state
tyjcalvert Dec 3, 2018
da1ca57
WIP for userProfile
shubmittal Dec 4, 2018
6dbbd8c
completed infringments
shubmittal Dec 6, 2018
35d8506
removed id from infringment desciption field
shubmittal Dec 6, 2018
d1bfdde
handled cancel edit action for existing infringments
shubmittal Dec 6, 2018
088c364
userprofile BioWIP
shubmittal Dec 6, 2018
c29765a
codeCleanUp
shubmittal Dec 6, 2018
9796709
codecleanup
shubmittal Dec 6, 2018
b69163c
fixed failing tests
shubmittal Dec 7, 2018
cc6a900
implemented bio
shubmittal Dec 7, 2018
3365665
fixed schema to allow bio to be empty
shubmittal Dec 7, 2018
99eebd2
basic unit tests for prfile component
shubmittal Dec 10, 2018
a8441fa
created unit test cases for profile
shubmittal Dec 10, 2018
7506370
completed profile and admin links
shubmittal Dec 10, 2018
8eea799
implemented show warning and cancel action behaviors by form resetting
shubmittal Dec 10, 2018
9f86b33
Working on project and team memberships
shubmittal Dec 11, 2018
d089432
WIP for user management
shubmittal Dec 11, 2018
6ce33a6
user profile WIP
shubmittal Dec 12, 2018
e2fe356
code cleanup
shubmittal Dec 13, 2018
30fd564
removed duplicate calls
shubmittal Dec 13, 2018
0ac5581
added stop propgation to form submit in tests inline with form submit…
shubmittal Dec 18, 2018
53f8c31
merging redux branch
tyjcalvert Dec 18, 2018
3fd2566
merge conflicts
tyjcalvert Dec 18, 2018
0f48dfa
last merge hopefully
tyjcalvert Dec 18, 2018
439cf4d
bug fix
tyjcalvert Dec 18, 2018
32b045d
unit tests for userprofile
shubmittal Dec 18, 2018
441ce3c
added more tests for userprfile
shubmittal Dec 18, 2018
0e0d667
refcatored code in userprofile test
shubmittal Dec 19, 2018
4f0e985
removed duplicate files
shubmittal Dec 19, 2018
8a7a523
created additional tests for profile
shubmittal Dec 19, 2018
df25a63
added role based test cases for profile
shubmittal Dec 20, 2018
8566855
fixed user login issue
shubmittal Jan 2, 2019
86ec81f
merge
tyjcalvert Jan 3, 2019
f7d815d
stash apply
tyjcalvert Jan 3, 2019
b2f7d32
expirttimestamp
shubmittal Jan 3, 2019
9ac808f
document titles to pages
shubmittal Jan 3, 2019
4306598
Corrected job name
shubmittal Jan 3, 2019
29b6e03
This branch is not stable, please do not merge
tyjcalvert Jan 8, 2019
222ab31
redux update
tyjcalvert Feb 5, 2019
87e8d0d
Merge branch 'master' of github.com:OneCommunityGlobal/HighestGoodNet…
tyjcalvert Feb 5, 2019
dfb0759
merge
tyjcalvert Feb 5, 2019
def9742
Merge pull request #7 from OneCommunityGlobal/redux-merging
tyjcalvert Feb 5, 2019
e009899
fast forward to master
tyjcalvert Feb 5, 2019
5feb523
fast forward to master
tyjcalvert Feb 5, 2019
63ccc45
merging readme
tyjcalvert Feb 5, 2019
296c902
merging readme
tyjcalvert Feb 5, 2019
5932d9d
Update package.json
shubmittal Jun 2, 2019
8ba0737
Update package.json
shubmittal Jun 2, 2019
3004418
Modify Login and Header components to connect them with Redux. Update…
fredcat Jan 11, 2020
117596d
Modify Login and Header components to connect them with Redux. Update…
fredcat Jan 11, 2020
9e6d0a0
Merge branch 'development' of https://github.com/OneCommunityGlobal/H…
sidgore Jan 11, 2020
75ca4c3
Edit User First Name and Last Name
sidgore Jan 11, 2020
ea8b33b
Merge pull request #14 from OneCommunityGlobal/feature/edit-name
sidgore Jan 11, 2020
e729e6c
reducers refactor
sidgore Jan 11, 2020
333a137
Merge pull request #15 from OneCommunityGlobal/feature/refactorCode
sidgore Jan 11, 2020
82316df
ran eslint --fix
sidgore Jan 11, 2020
4739813
Merge pull request #16 from OneCommunityGlobal/feature/refactorCode
sidgore Jan 11, 2020
8b2ff4c
Profile Pic Upload
sidgore Jan 11, 2020
ad2536b
Merge pull request #17 from OneCommunityGlobal/feature/HGN-1.4.1-prof…
sidgore Jan 11, 2020
9eadcd5
Phone Number and Job Title Section
sidgore Jan 12, 2020
8996821
Merge pull request #18 from OneCommunityGlobal/feature/HGN1.4.3-jobTitle
sidgore Jan 12, 2020
9634318
Added Modal
sidgore Jan 12, 2020
90abed7
Merge branch 'development' into feature/HGN1.4.3-jobTitle
sidgore Jan 12, 2020
d36511f
Merge pull request #19 from OneCommunityGlobal/feature/HGN1.4.3-jobTitle
sidgore Jan 12, 2020
e2f7d9e
1.4.6 badges section
sidgore Jan 12, 2020
36784c2
Merge branch 'development' into feature/HGN1.4.6-badges
sidgore Jan 12, 2020
6536204
Merge pull request #20 from OneCommunityGlobal/feature/HGN1.4.6-badges
sidgore Jan 12, 2020
31123fe
Update UserProfile.jsx
sidgore Jan 12, 2020
b90e84a
Merge branch 'development' into feature/HGN1.4.6-badges
sidgore Jan 12, 2020
b7d59b3
Merge pull request #22 from OneCommunityGlobal/feature/HGN1.4.6-badges
sidgore Jan 12, 2020
388fe19
Badges Component
sidgore Jan 12, 2020
9c35b39
formatting
sidgore Jan 12, 2020
0e72787
Merge pull request #23 from OneCommunityGlobal/feature/HGN1.4.6-badges
sidgore Jan 12, 2020
c1c27e1
restructured components
Jan 13, 2020
94c3d0a
Merged branch 'development' into development
Jan 13, 2020
ca85518
Created constants file
Jan 13, 2020
6b9b73c
refactored action types
sidgore Jan 13, 2020
9f9e247
Created Language folders
Jan 13, 2020
2c06709
Added authActions.js and authReducer.js. Redux state "user" was renam…
fredcat Jan 16, 2020
dbcd50b
Restructured root (App.jsx) and Logout components. Fixed bugs in Head…
fredcat Jan 17, 2020
17e9838
Replaced all methods from /services/loginService.js with Redux action…
fredcat Jan 18, 2020
30e80c9
refactor
sidgore Jan 18, 2020
70f47f9
Merge branch 'development' into feature/HGN1.4.9-blueSquares
sidgore Jan 18, 2020
af1b43b
Merge pull request #24 from OneCommunityGlobal/feature/HGN1.4.9-blueS…
sidgore Jan 18, 2020
7833895
Created Project Page
Jan 18, 2020
4facaa8
Created Projects Page & Fixed conflicts
Jan 18, 2020
e72daab
Hours Contributed and Startdate-EndDate
sidgore Jan 18, 2020
6aeafc6
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Jan 18, 2020
5229443
Merge pull request #25 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Jan 18, 2020
90ed9c5
Update UserProfile.jsx
sidgore Jan 18, 2020
f30a081
Updated code descriptions
Jan 18, 2020
7d3e1da
Commit on development
Jan 18, 2020
f223d81
display admin and personal links
sidgore Jan 18, 2020
4696a0e
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Jan 18, 2020
76b28f6
color change for Badge section
sidgore Jan 18, 2020
e80ff82
Merge pull request #26 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Jan 18, 2020
1d77683
changes to profile page
sidgore Jan 19, 2020
39d8ecf
Redisgned User Profile Page
sidgore Jan 19, 2020
02945d6
Updated Modal, Confirm deleted Project
Jan 20, 2020
09f7b02
SideBar and UserProfileBody
sidgore Jan 21, 2020
c7dbbfe
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Jan 21, 2020
a72c544
Updated coding convention
Jan 21, 2020
aaf5ccf
Changed to function components
Jan 22, 2020
54a60c1
Fixed display project bug
Jan 22, 2020
caafb34
Connected UpdatePassword with Redux. Added error actions and reducer.…
fredcat Jan 23, 2020
03cc57f
Fixed ForcePasswordUpdate component. Put password update actions into…
fredcat Jan 24, 2020
b65802b
formatting
sidgore Jan 25, 2020
e95de34
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Jan 25, 2020
c5c0571
Merge pull request #27 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Jan 25, 2020
6c2b80e
Add social and admin Link
sidgore Jan 25, 2020
1385da6
removed commented code
sidgore Jan 25, 2020
aedde54
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Jan 25, 2020
99a926d
Merge pull request #28 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Jan 25, 2020
fcd3bf3
only an admin can add admin Links
sidgore Jan 25, 2020
51a8ab8
Merge pull request #29 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Jan 25, 2020
8f7faba
Updated Adding Project
Jan 26, 2020
8e3314e
Updated Project Management
Jan 26, 2020
c05ef1e
Fixed asyn function
Jan 26, 2020
6c9102b
Updated Cicle CI
Jan 26, 2020
93183f7
Removed not-used variables
Jan 26, 2020
9de7d19
Updated Circle CI
Jan 27, 2020
772db0d
Updated Projects
Jan 27, 2020
d227317
Deleted Animation
Jan 27, 2020
27c6313
Config CI
Jan 27, 2020
4896da4
Changed syntax of CI yaml
Jan 27, 2020
dd5e251
Fixed typo on branch development
Jan 27, 2020
9f999aa
Skip the Test
Jan 27, 2020
076db77
Fixed async bugs on projects action
Jan 27, 2020
2cf6388
Changed work-flow of projects redux
Jan 27, 2020
7bb5592
Check server url
Jan 27, 2020
978fe3a
Test API Endpoint for dev
Jan 27, 2020
68483e7
Backed to variable env
Jan 27, 2020
1c74985
Fixed null reference error in Header component
fredcat Jan 28, 2020
922faa3
Fixed bugs
Jan 28, 2020
ccba7e1
Updated async
Jan 28, 2020
9110ea9
Added Loading
Jan 30, 2020
83a2d16
Updated Project Workflow
Jan 30, 2020
07f31f6
Updated Loading
Jan 30, 2020
8eb8b21
removed dashboard
sidgore Jan 30, 2020
99f9efb
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Jan 30, 2020
6a34cdf
eslint
sidgore Jan 31, 2020
6ca12ce
Merge pull request #30 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Jan 31, 2020
8ad2a45
Updated Projects
Jan 31, 2020
01006bd
Merged coding convention
Jan 31, 2020
cb5e5ce
Updated Project workflow
Jan 31, 2020
4edb6cc
Updated loading
Jan 31, 2020
121d185
Fixed bugs on adding projects
Jan 31, 2020
eab21f3
Updated Modal & Message
Feb 2, 2020
48d82c1
Updated Delete project
Feb 2, 2020
cfee94b
Updated setActive
Feb 2, 2020
7322964
Updated ProjectName and Active
Feb 2, 2020
41e4200
Updated project
Feb 2, 2020
5ccedb5
Set inactive
Feb 2, 2020
1260668
Updated Inactive
Feb 2, 2020
d99a295
Updated View Members of Project
Feb 4, 2020
b06e897
Update Dashboard.jsx
sidgore Feb 6, 2020
1c014c9
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Feb 7, 2020
619ae01
Update settings.json
sidgore Feb 7, 2020
1db0249
Merge pull request #31 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Feb 7, 2020
799028f
LeaderBoard
sidgore Feb 8, 2020
300dd6d
Merge pull request #32 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Feb 8, 2020
222cd68
Update leaderBoardData.js
sidgore Feb 8, 2020
9d4e367
Merge pull request #33 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Feb 8, 2020
d4a51ce
leaderboard dta
sidgore Feb 8, 2020
56e22fd
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Feb 8, 2020
485df2f
Merge pull request #34 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Feb 8, 2020
f3d505e
Update LeaderBoard.container.jsx
sidgore Feb 9, 2020
769bf37
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Feb 9, 2020
83763a0
Merge pull request #35 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Feb 9, 2020
8a66fae
Fixed some warnings
sidgore Feb 9, 2020
061f58e
Merge branch 'development' into feature/HGN1.4.4-workHistory
sidgore Feb 9, 2020
52ab26c
Merge pull request #36 from OneCommunityGlobal/feature/HGN1.4.4-workH…
sidgore Feb 9, 2020
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
10 changes: 10 additions & 0 deletions . prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 100,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"tabWidth": 2,
"semi": false
}
8 changes: 2 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
- run:
name: Run react build
command: "sudo REACT_APP_APIENDPOINT=$APIENDPOINT_DEV REACT_APP_SENTRY_URL=$SENTRY_URL_DEV npm run build"
- run:
name: Test the build
command: "sudo npm test"

- run:
name: Deploy app
command: ./node_modules/.bin/surge build --domain $SURGE_DOMAIN_DEV
Expand All @@ -36,12 +32,12 @@ jobs:

workflows:
version: 2
deploy:
build-deploy:
jobs:
- build_dev:
filters:
branches:
only: developement
only: development
- build_PROD:
filters:
branches:
Expand Down
22 changes: 20 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
module.exports = {
"extends": "airbnb"
};
env: {
browser: true,
es6: true,
node: true
},
extends: ['plugin:react/recommended', 'airbnb'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ['react'],
rules: {}
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// other settings
// formatting using eslint
// let editor format using prettier for all other files
"editor.formatOnSave": true,
// disable editor formatting, so eslint can handle it
"[javascript]": {
"editor.formatOnSave": true
},
//"eslint.enable": true,
// available through eslint plugin in vscode
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
25,253 changes: 9,782 additions & 15,471 deletions npm-shrinkwrap.json

Large diffs are not rendered by default.

52 changes: 33 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,36 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@sentry/browser": "^4.3.0",
"@tinymce/tinymce-react": "^2.4.0",
"axios": "^0.18.0",
"bootstrap": "^4.1.3",
"@sentry/browser": "^4.6.6",
"@tinymce/tinymce-react": "^3.2.0",
"axios": "^0.19.0",
"bootstrap": "^4.3.1",
"classnames": "^2.2.6",
"font-awesome": "^4.7.0",
"joi": "^14.0.6",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.11",
"react": "^16.3.2",
"react-bootstrap": "^0.32.4",
"react-dom": "^16.3.2",
"react-image": "^1.5.1",
"react-redux": "^5.1.1",
"react-router-dom": "^4.3.1",
"react-scripts": "^2.0.4",
"react-table": "^6.8.6",
"react-toastify": "^4.4.3",
"reactstrap": "^6.5.0",
"lodash": ">4.17.13",
"moment": "^2.22.2",
"react": "^16.12.0",
"react-bootstrap": "^1.0.0-beta.9",
"react-dom": "^16.12.0",
"react-image": "^2.1.3",
"react-redux": "^7.1.0",
"react-router-bootstrap": "^0.25.0",
"react-router-dom": "^5.0.1",
"react-scripts": "^3.0.1",
"react-table": "^6.10.0",
"react-toastify": "^5.3.1",
"reactstrap": "^8.2.0",
"redux": "^4.0.1",
"redux-persist": "^5.10.0",
"redux-thunk": "^2.3.0"
},
"scripts": {
"prestart": "npm run test",
"start": "react-scripts start",
"build": "react-scripts build",
"lint": "eslint src --fix",
"test": "cross-env CI=true react-scripts test --env=jsdom",
"test:watch": " react-scripts test --env=jsdom",
"test:coverage": "cross-env CI=true react-scripts test --env=jsdom --coverage",
Expand All @@ -41,10 +46,19 @@
"not op_mini all"
],
"devDependencies": {
"babel-eslint": "^10.0.2",
"cross-env": "^5.2.0",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.6.0",
"sinon": "^7.1.1",
"surge": "^0.20.1"
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-config-prettier": "^5.1.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.17.0",
"prettier": "^1.19.1",
"sinon": "^7.3.2",
"surge": "^0.21.3"
}
}
Binary file removed public/defaultprofilepic.jpg
Binary file not shown.
Binary file added public/defaultprofilepic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 10 additions & 13 deletions src/__tests__/App.test.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { shallow } from 'enzyme';
import App from '../components/App';
import {shallow} from 'enzyme'
import Dashboard from '../components/Dashboard'

describe("App tests", () => {
import Dashboard from '../components/Dashboard';

describe('App tests', () => {
let mountedapp;


beforeEach(() => {
mountedapp = shallow(<App/>);
})

it ("renders without crashing", () => {
shallow(<App />)
beforeEach(() => {
mountedapp = shallow(<App />);
});

})

})
it('renders without crashing', () => {
shallow(<App />);
});
});
28 changes: 13 additions & 15 deletions src/__tests__/Dashboard.test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import {shallow} from 'enzyme'
import React from 'react'
import Dashboard from '../components/Dashboard'
import { shallow } from 'enzyme';
import React from 'react';
import Dashboard from '../components/Dashboard';


describe("Dashboard tests", () => {
describe('Dashboard tests', () => {
let dashBoardMountedPage;
beforeEach(() => {
dashBoardMountedPage = shallow(<Dashboard />);
});

let dashBoardMountedPage;
beforeEach(()=> {
dashBoardMountedPage = shallow(<Dashboard/>)
})

xit("should render a leaderboard", ()=> {
let leaderboard = dashBoardMountedPage.find("Leaderboard").length;
expect(leaderboard).toBe(1)
})

})
xit('should render a leaderboard', () => {
const leaderboard = dashBoardMountedPage.find('Leaderboard').length;
expect(leaderboard).toBe(1);
});
});
21 changes: 10 additions & 11 deletions src/__tests__/Leaderboard.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import React from "react";
import Leaderboard from "../components/Leaderboard";
import { mount } from "enzyme";
import React from 'react';
import { mount } from 'enzyme';
import Leaderboard from '../components/Leaderboard';

describe("Leaderboard component structure", () => {
// let mountedLeaderboard;
// beforeEach(() => {
// mountedLeaderboard = mount(<Leaderboard />);
// })
describe('Leaderboard component structure', () => {
// let mountedLeaderboard;
// beforeEach(() => {
// mountedLeaderboard = mount(<Leaderboard />);
// })

it("will be redone after redux edits", ()=>{console.log(test)})

})
it('will be redone after redux edits', () => { console.log(test); });
});
Loading