Reuse common service struct

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-06-27 23:53:59 -04:00
parent c8d7abf216
commit 33294aa036
18 changed files with 172 additions and 339 deletions
+4 -4
View File
@@ -97,7 +97,7 @@ var expectedSettings = &Settings{
EnableVideoAutoplay: Bool(true),
}
func TestAccountServiceOp_Info(t *testing.T) {
func TestAccountService_Info(t *testing.T) {
setup()
defer teardown()
@@ -113,7 +113,7 @@ func TestAccountServiceOp_Info(t *testing.T) {
assert.Equal(t, expectedInfo, info)
}
func TestAccountServiceOp_Karma(t *testing.T) {
func TestAccountService_Karma(t *testing.T) {
setup()
defer teardown()
@@ -129,7 +129,7 @@ func TestAccountServiceOp_Karma(t *testing.T) {
assert.Equal(t, expectedKarma, karma)
}
func TestAccountServiceOp_Settings(t *testing.T) {
func TestAccountService_Settings(t *testing.T) {
setup()
defer teardown()
@@ -145,7 +145,7 @@ func TestAccountServiceOp_Settings(t *testing.T) {
assert.Equal(t, expectedSettings, settings)
}
func TestAccountServiceOp_UpdateSettings(t *testing.T) {
func TestAccountService_UpdateSettings(t *testing.T) {
setup()
defer teardown()