mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 10:07:02 +00:00
mime & util unit tests pass
added a sample of what the config should look like, may need tweaking once I actually try to parse & use it.
This commit is contained in:
@@ -79,7 +79,7 @@ func TestParseInlineHtml(t *testing.T) {
|
||||
// readMessage is a test utility function to fetch a mail.Message object.
|
||||
func readMessage(filename string) *mail.Message {
|
||||
// Open test email for parsing
|
||||
raw, err := os.Open(filepath.Join("..", "..", "test-data", filename))
|
||||
raw, err := os.Open(filepath.Join("test-data", filename))
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("Failed to open test data: %v", err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user