Skip to content

Commit

Permalink
Merge pull request #53 from gabrielclima/master
Browse files Browse the repository at this point in the history
Check some repo files
  • Loading branch information
Matt Bernier committed Nov 22, 2017
2 parents 78ef15f + 65ad81b commit 18a11fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions smtpapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package smtpapi
import (
"encoding/json"
"io/ioutil"
"os"
"reflect"
"regexp"
"strconv"
Expand Down Expand Up @@ -377,6 +378,19 @@ func TestMarshalUnmarshall(t *testing.T) {
}
}

func TestRepoFiles(t *testing.T) {
files := []string{"docker/Dockerfile", "docker/docker-compose.yml", ".env_sample",
".gitignore", ".travis.yml", ".codeclimate.yml", "CHANGELOG.md", "CODE_OF_CONDUCT.md",
"CONTRIBUTING.md", ".github/ISSUE_TEMPLATE", "LICENSE.txt", ".github/PULL_REQUEST_TEMPLATE",
"README.md", "TROUBLESHOOTING.md", "USAGE.md", "USE_CASES.md"}

for _, file := range files {
if _, err := os.Stat(file); os.IsNotExist(err) {
t.Errorf("Repo file does not exist: %v", file)
}
}
}

func TestLicenceDate(t *testing.T) {
b, err := ioutil.ReadFile("./LICENSE.txt")

Expand Down

0 comments on commit 18a11fc

Please sign in to comment.