-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: configure test environment and code coverage
Add code coverage reporting (console, HTML), prepare Travis CI config file for Codecov integration, update Node.js version used by Travis CI.
- Loading branch information
1 parent
93647fa
commit ae8eb0e
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
.DS_Store | ||
|
||
node_modules | ||
npm-debug.log | ||
|
||
.nyc_output | ||
coverage | ||
|
||
example/build | ||
dist | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
language: node_js | ||
node_js: | ||
- "5.1.0" | ||
script: npm run test | ||
- "6.2.0" | ||
script: npm run test:production | ||
after_success: npm run coverage:production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { expect } from 'chai'; | ||
|
||
import { repeat } from 'helpers'; | ||
|
||
context(`Helpers`, () => { | ||
describe(`'repeat'`, () => { | ||
it(`should repeat a string the number of indicated times`, () => { | ||
expect(repeat(`teacher`, 3)).to.equal(`teacherteacherteacher`); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters