Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim de Beer committed Jun 30, 2016
1 parent 1ebabce commit 34313d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: node_js
node_js:
- '5.4'
- '4.4'
- '6.2'
script: npm run travis
notifications:
email: false
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@
"Youri Daamen <youri@vigour.io>"
],
"devDependencies": {
"coveralls": "^2.11.9",
"istanbul": "^0.4.3",
"nodemon": "^1.9.1",
"pre-commit": "^1.1.3",
"standard": "^7.0.1",
"tap-difflet": "0.4.0",
"tape": "^4.4.0",
"vigour-doc": "^1.1.5",
"standard": "^7.0.1"
"parse-element": "^2.0.1"
}
}
9 changes: 9 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
'use strict'
const render = require('../render')
const test = require('tape')
const parse = require('parse-element')

test('render - cases', function (t) {
var elem = render({}, false, { $bla: true })
t.same(parse(elem), '<div class="bla"></div>', 'add cases')
t.end()
})

0 comments on commit 34313d6

Please sign in to comment.