Skip to content

Commit

Permalink
Update redwood to 3.1 and fix user creation test
Browse files Browse the repository at this point in the history
  • Loading branch information
andeen171 committed Oct 10, 2022
1 parent 852f17e commit dd84a5b
Show file tree
Hide file tree
Showing 6 changed files with 3,287 additions and 3,499 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"editor.tabSize": 4,
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": false,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[prisma]": {
"editor.formatOnSave": true
},
"editor.fontLigatures": true,
"editor.fontFamily": "Fira Code"
}
4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"@redwoodjs/api": "^2.2.0",
"@redwoodjs/graphql-server": "^2.2.0"
"@redwoodjs/api": "^3.1.1",
"@redwoodjs/graphql-server": "^3.1.1"
},
"devDependencies": {
"@types/crypto-js": "^4.1.1"
Expand Down
7 changes: 3 additions & 4 deletions api/src/services/users/users.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ describe('users', () => {
input: {
name: 'Jose da penha',
email: '[email protected]',
hashedPassword: 'hashedPassword',
salt: 'salt',
password: 'password',
roles: 'USER',
},
})

expect(result.name).toEqual('jose da penha')
expect(result.email).toEqual('[email protected]')
expect(result.hashedPassword).toEqual('hashedPassword')
expect(result.salt).toEqual('salt')
expect(result.hashedPassword).toHaveLength(64)
})

scenario('updates a user', async (scenario: StandardScenario) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
]
},
"devDependencies": {
"@redwoodjs/core": "^2.2.0"
"@redwoodjs/core": "^3.1.1"
},
"eslintConfig": {
"extends": "@redwoodjs/eslint-config",
Expand Down
8 changes: 4 additions & 4 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
]
},
"dependencies": {
"@redwoodjs/auth": "^2.2.0",
"@redwoodjs/forms": "^2.2.0",
"@redwoodjs/router": "^2.2.0",
"@redwoodjs/web": "^2.2.0",
"@redwoodjs/auth": "^3.1.1",
"@redwoodjs/forms": "^3.1.1",
"@redwoodjs/router": "^3.1.1",
"@redwoodjs/web": "^3.1.1",
"prop-types": "15.8.1",
"react": "17.0.2",
"react-dom": "17.0.2"
Expand Down
Loading

0 comments on commit dd84a5b

Please sign in to comment.