Skip to content

Commit

Permalink
enhance test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankyBoy committed Oct 17, 2014
1 parent c319943 commit 2e44da7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
30 changes: 30 additions & 0 deletions spec/focusExcludeSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
var jparams = require('../index.js');

describe('focus and ignored TCs', function () {
var iterator = jparams
.iterate('theNumber')
.values(1, 2, 3, 4, 5);

describe('xit should be ignored', function() {
iterator.xit('should be ignored', function (theNumber) {
expect(false).toBeTruthy();
});

it('should run', function() {
expect(false).toBeFalsy();
});
});

// commented out because it would prevent other TCs from running

//describe('iit should focus', function() {
// iterator.iit('should run', function (theNumber) {
// expect(false).toBeFalsy();
// });

// it('should not run', function () {
// expect(false).toBeTruthy();
// });
//});

});
8 changes: 4 additions & 4 deletions spec/looping.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('spec which loops', function() {
expect(theNumber).toBeGreaterThan(0);
});
});

jparams
.iterate('theNumber')
.values(1, 2, 3, 4, 5)
Expand All @@ -38,16 +38,16 @@ describe('spec which loops', function() {
expect(result).toBeGreaterThan(5);
expect(result).toBeLessThan(11);
});

it('times two', function() {
var result = theNumber * 2;
expect(result).toBeGreaterThan(1);
expect(result).toBeLessThan(11);
});
});

describe('An async example', function() {
});

describe('An async example', function() {
jparams
.iterate('theNumber')
.values(500, 1000)
Expand Down

0 comments on commit 2e44da7

Please sign in to comment.