2 var Backoff = require('..');
3 var assert = require('assert');
5 describe('.duration()', function(){
6 it('should increase the backoff', function(){
9 assert(100 == b.duration());
10 assert(200 == b.duration());
11 assert(400 == b.duration());
12 assert(800 == b.duration());
15 assert(100 == b.duration());
16 assert(200 == b.duration());