File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ export default withNuxt(
11
11
'no-console' : 'off' ,
12
12
} ,
13
13
} ,
14
- )
14
+ )
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import { defineStore } from 'pinia'
4
4
export const useUserStore = defineStore ( 'user' , {
5
5
state : ( ) => ( {
6
6
// ユーザーの定義・初期化
7
- user : { email : '' , password : '' }
7
+ user : { email : '' , password : '' } ,
8
8
} ) ,
9
9
actions : {
10
10
// ユーザー情報の更新
11
- setUserInfo ( email : string , password : string ) {
11
+ setUserInfo ( email : string , password : string ) {
12
12
this . user . email = email
13
13
this . user . password = password
14
- }
15
- }
14
+ } ,
15
+ } ,
16
16
} )
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import { useUserStore } from '../../../store/user'
4
4
5
5
const initialUser = {
6
6
email : '' ,
7
- password : ''
7
+ password : '' ,
8
8
}
9
9
const updatedUser = {
10
10
email : 'new email' ,
11
- password : 'new password'
11
+ password : 'new password' ,
12
12
}
13
13
14
14
describe ( 'Store' , ( ) => {
You can’t perform that action at this time.
0 commit comments