-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(Releasing): Add Travis CI, Conventional commit and semantic-rel…
…eace-cli closes #1
- Loading branch information
Showing
4 changed files
with
294 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: node_js | ||
cache: | ||
directories: | ||
- ~/.npm | ||
notifications: | ||
email: false | ||
node_js: | ||
- '9' | ||
- '8' | ||
- '6' | ||
- '4' | ||
script: | ||
- npm run test | ||
after_success: | ||
- npm run semantic-release | ||
branches: | ||
except: | ||
- /^v\d+\.\d+\.\d+$/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,22 @@ | ||
var expect = require('chai').expect; | ||
|
||
var kenya = require('./index'); | ||
|
||
describe('Counties List', function() { | ||
describe('counties', function() { | ||
it('Should be an array of objects', function() { | ||
expect(kenya.counties).to.satisfy(arraOfObjects); | ||
|
||
function arraOfObjects(args) { | ||
return typeof args === 'object'; | ||
} | ||
}); | ||
}); | ||
|
||
describe('Random county', function() { | ||
it('Should return a random county from the list of all counties', function() { | ||
var randomcounty = kenya.randomcounty(); | ||
expect(kenya.counties).to.include(randomcounty); | ||
}); | ||
}); | ||
}); |