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

Commit

Permalink
Update unit tests for SMTP
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffmabc committed Jun 4, 2020
1 parent 1c1fe26 commit 57b2771
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/jsonapi_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const settingsJSON = `{
"mispaymentBuffer": 1,
"smtpSettings": {
"notifications": true,
"openBazaarName": "",
"serverAddress": "smtp.urbanart.com:465",
"username": "urbanart",
"password": "letmein",
Expand Down Expand Up @@ -94,6 +95,7 @@ const settingsUpdateJSON = `{
"mispaymentBuffer": 1,
"smtpSettings": {
"notifications": true,
"openBazaarName": "",
"serverAddress": "smtp.urbanart.com:465",
"username": "urbanart",
"password": "letmein",
Expand Down Expand Up @@ -142,6 +144,7 @@ const settingsPatchedJSON = `{
"mispaymentBuffer": 1,
"smtpSettings": {
"notifications": true,
"openBazaarName": "",
"serverAddress": "smtp.urbanart.com:465",
"username": "urbanart",
"password": "letmein",
Expand Down
1 change: 1 addition & 0 deletions api/jsonapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func TestSettingsSetModerator(t *testing.T) {
"showNsfw": true,
"smtpSettings": {
"notifications": false,
"openBazaarName": "",
"password": "",
"recipientEmail": "",
"senderEmail": "",
Expand Down
1 change: 1 addition & 0 deletions test/factory/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func MustNewValidSettings() repo.SettingsData {
"mispaymentBuffer": 1,
"smtpSettings" : {
"notifications": false,
"openBazaarName": "",
"password": "",
"recipientEmail": "",
"senderEmail": "",
Expand Down

0 comments on commit 57b2771

Please sign in to comment.