Every theme should display the same information // Find below the tests to check that // Implement this interface when creating a new example checking a common feature of all themes
| 18 | |
| 19 | // Implement this interface when creating a new example checking a common feature of all themes |
| 20 | type Example interface { |
| 21 | // Create the hermes example with data |
| 22 | // Represents the "Given" step in Given/When/Then Workflow |
| 23 | getExample() (h Hermes, email Email) |
| 24 | // Checks the content of the generated HTML email by asserting content presence or not |
| 25 | assertHTMLContent(t *testing.T, s string) |
| 26 | // Checks the content of the generated Plaintext email by asserting content presence or not |
| 27 | assertPlainTextContent(t *testing.T, s string) |
| 28 | } |
| 29 | |
| 30 | // Scenario |
| 31 | type SimpleExample struct { |
no outgoing calls
no test coverage detected