Skip to content

Commit

Permalink
travis ci integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel van Rijn committed Sep 17, 2012
1 parent 9a37b14 commit 32203d8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- 0.8
- 0.9
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
},
"version": "0.0.1",
"dependencies": {},
"devDependencies": {}
"devDependencies": {
"yeoman": "~0.9.1"
},
"scripts": {
"test": "node_modules/.bin/yeoman test --verbose"
}
}
1 change: 1 addition & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<!-- include source files here... -->

<!-- include spec files here... -->
<script src="spec/array_spec.js"></script>

<!-- trigger the mocha runner -->
<script src="runner/mocha.js"></script>
Expand Down
10 changes: 10 additions & 0 deletions test/spec/array_spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
var array = [1,2,3];
expect(array).to.have.length(3);
expect(array.indexOf(5)).to.equal(-1);
expect(array.indexOf(0)).to.equal(-1);
});
});
});

0 comments on commit 32203d8

Please sign in to comment.