Feat: settings repo
This commit is contained in:
		| @@ -50,9 +50,10 @@ func TestActionsRepo_CreateAction(t *testing.T) { | ||||
| 		WordColor:  "red", | ||||
| 		Number:     "3", | ||||
| 		CreatedAt:  time.Now(), | ||||
| 		RoomID:     roomID, | ||||
| 	} | ||||
|  | ||||
| 	err := repo.CreateAction(context.Background(), roomID, action) | ||||
| 	err := repo.CreateAction(context.Background(), action) | ||||
| 	assert.NoError(t, err) | ||||
|  | ||||
| 	var retrievedAction models.Action | ||||
| @@ -75,6 +76,7 @@ func TestActionsRepo_ListActions(t *testing.T) { | ||||
| 		Word:       "apple", | ||||
| 		WordColor:  "red", | ||||
| 		Number:     "3", | ||||
| 		RoomID:     roomID, | ||||
| 		CreatedAt:  time.Now().Add(-2 * time.Second), | ||||
| 	} | ||||
| 	action2 := &models.Action{ | ||||
| @@ -84,6 +86,7 @@ func TestActionsRepo_ListActions(t *testing.T) { | ||||
| 		Word:       "banana", | ||||
| 		WordColor:  "blue", | ||||
| 		Number:     "0", | ||||
| 		RoomID:     roomID, | ||||
| 		CreatedAt:  time.Now().Add(-1 * time.Second), | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder