Permalink
Browse files

travis ci integration

  • Loading branch information...
Manuel van Rijn
Manuel van Rijn committed Sep 14, 2012
1 parent 9a37b14 commit 32203d84ca2dbba2faa671e55afede8a1e6666df
Showing with 21 additions and 1 deletion.
  1. +4 −0 .travis.yml
  2. +6 −1 package.json
  3. +1 −0 test/index.html
  4. +10 −0 test/spec/array_spec.js
View
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.8
+ - 0.9
View
@@ -15,5 +15,10 @@
},
"version": "0.0.1",
"dependencies": {},
- "devDependencies": {}
+ "devDependencies": {
+ "yeoman": "~0.9.1"
+ },
+ "scripts": {
+ "test": "node_modules/.bin/yeoman test --verbose"
+ }
}
View
@@ -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>
View
@@ -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.