Skip to content

Commit

Permalink
Add code coverage with Istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Jul 12, 2016
1 parent 2564a9f commit 81bf648
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,9 +1,10 @@
.DS_Store
.sass-cache
node_modules
coverage
dist
.zip
maildev-*
settings.json
*.sublime-*
.nodemonignore
.nodemonignore
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -20,6 +20,9 @@
"type": "git",
"url": "http://github.com/djfarrelly/maildev.git"
},
"scripts": {
"test": "./node_modules/.bin/istanbul cover _mocha"
},
"main": "./index.js",
"bin": {
"maildev": "./bin/maildev"
Expand All @@ -45,15 +48,13 @@
"grunt-nodemon": "^0.4.0",
"grunt-sass": "^1.1.0",
"http-proxy-middleware": "^0.12.0",
"istanbul": "^0.4.4",
"matchdep": "^1.0.1",
"mocha": "^2.2.5",
"nodemailer": "^2.3.0",
"request": "^2.69.0"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "./node_modules/mocha/bin/mocha"
}
}
2 changes: 1 addition & 1 deletion test/email.js
Expand Up @@ -47,7 +47,7 @@ describe('email', function() {

assert.equal(html, '<img src="/email/' + email.id + '/attachment/tyler.jpg"/>');

// Pass baseUrl
// Pass baseUrl
maildev.getEmailHTML(email.id, 'localhost:8080', function(err, html) {

assert.equal(html, '<img src="//localhost:8080/email/' + email.id + '/attachment/tyler.jpg"/>');
Expand Down

0 comments on commit 81bf648

Please sign in to comment.