Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 57b2771

Browse files
committed
Update unit tests for SMTP
1 parent 1c1fe26 commit 57b2771

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

api/jsonapi_data_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const settingsJSON = `{
5555
"mispaymentBuffer": 1,
5656
"smtpSettings": {
5757
"notifications": true,
58+
"openBazaarName": "",
5859
"serverAddress": "smtp.urbanart.com:465",
5960
"username": "urbanart",
6061
"password": "letmein",
@@ -94,6 +95,7 @@ const settingsUpdateJSON = `{
9495
"mispaymentBuffer": 1,
9596
"smtpSettings": {
9697
"notifications": true,
98+
"openBazaarName": "",
9799
"serverAddress": "smtp.urbanart.com:465",
98100
"username": "urbanart",
99101
"password": "letmein",
@@ -142,6 +144,7 @@ const settingsPatchedJSON = `{
142144
"mispaymentBuffer": 1,
143145
"smtpSettings": {
144146
"notifications": true,
147+
"openBazaarName": "",
145148
"serverAddress": "smtp.urbanart.com:465",
146149
"username": "urbanart",
147150
"password": "letmein",

api/jsonapi_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ func TestSettingsSetModerator(t *testing.T) {
101101
"showNsfw": true,
102102
"smtpSettings": {
103103
"notifications": false,
104+
"openBazaarName": "",
104105
"password": "",
105106
"recipientEmail": "",
106107
"senderEmail": "",

test/factory/settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func MustNewValidSettings() repo.SettingsData {
2222
"mispaymentBuffer": 1,
2323
"smtpSettings" : {
2424
"notifications": false,
25+
"openBazaarName": "",
2526
"password": "",
2627
"recipientEmail": "",
2728
"senderEmail": "",

0 commit comments

Comments
 (0)