Browse files

sequential letters

  • Loading branch information...
1 parent ebc5e08 commit d031cad683b7ddea3be3b7a69598f12c9c7004c9 @aaronpowell committed Dec 4, 2011
Showing with 10 additions and 1 deletion.
  1. +10 −1 tests/until-sequential-spec.js
View
11 tests/until-sequential-spec.js
@@ -1,12 +1,21 @@
describe('tbd-util-sequantial', function() {
var tbd = require('../lib/');
- it('should generate a sequential value for each record', function() {
+ it('should generate a sequential value for each record', function () {
var data = tbd.from({})
.prop('foo').use(tbd.utils.sequential(0))
.make(2);
expect(data[0].foo).toBe(0);
expect(data[1].foo).toBe(1);
});
+
+ it('should handle letters', function () {
+ var data = tbd.from({})
+ .prop('foo').use(tbd.utils.sequential('a'))
+ .make(2);
+
+ expect(data[0].foo).toBe('a');
+ expect(data[1].foo).toBe('b');
+ });
});

0 comments on commit d031cad

Please sign in to comment.