Skip to content

Commit 409073f

Browse files
committed
Updates for test coverage and travis
1 parent 09c9ca8 commit 409073f

File tree

9 files changed

+4625
-4613
lines changed

9 files changed

+4625
-4613
lines changed

.coveralls.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: te5NwCnsvRCa3mQiM5xFVLS7Do9V8qlKj

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ node_js:
44
- "0.11"
55
after_success:
66
- ./node_modules/.bin/jscoverage lib lib-cov
7-
- ./node_modules/.bin/mocha test/**.js -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
7+
- mv lib lib-orig
8+
- mv lib-cov lib
9+
- ./node_modules/.bin/mocha test/ -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
10+
- -rf lib
11+
- mv lib-orig lib

Gruntfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ module.exports = function( grunt ) {
4141
},
4242
},
4343
files:{
44-
'index.js': [
45-
'lib/wrap-start.js',
44+
'lib/index.js': [
45+
'wrap/wrap-start.js',
4646
'lib/version.js',
4747
'node_modules/microformat-shiv/lib/living-standard.js',
4848
'node_modules/microformat-shiv/lib/parser.js',
@@ -57,13 +57,13 @@ module.exports = function( grunt ) {
5757
'node_modules/microformat-shiv/lib/text.js',
5858
'node_modules/microformat-shiv/lib/html.js',
5959
'node_modules/microformat-shiv/lib/maps/*.js',
60-
'lib/wrap-end.js',
60+
'wrap/wrap-end.js',
6161
]
6262
}
6363
}
6464
},
6565
jshint: {
66-
files: ['lib/**/*.js','Gruntfile.js','index.js'],
66+
files: ['lib/**/*.js','wrap/**/*.js','Gruntfile.js','lib/index.js'],
6767
options: {
6868
curly: true,
6969
eqeqeq: true,
@@ -77,7 +77,7 @@ module.exports = function( grunt ) {
7777
node: true,
7878
quotmark: 'single',
7979
moz: true,
80-
predef: [ 'Microformats', 'define', 'modules', 'URI' ]
80+
predef: [ 'Microformats', 'define', 'modules', 'URI', 'cheerio' ]
8181
},
8282
globals: {}
8383
},
@@ -88,7 +88,7 @@ module.exports = function( grunt ) {
8888
all: ['test/mocha-tests.html']
8989
},
9090
watch: {
91-
files: ['lib/**/*.js','node_modules/microformat-shiv/lib/**/*.js','Gruntfile.js','package.json'],
91+
files: ['lib/domutils.js','wrap/**/*.js','node_modules/microformat-shiv/lib/**/*.js','Gruntfile.js','package.json'],
9292
tasks: ['buildfile', 'concat:dist']
9393
}
9494
});

0 commit comments

Comments
 (0)