'use strict';
var Stats = require('../lib/stats');

describe('stats', function() {
    beforeEach(function() {
        this.stats = new Stats();
    });

    it('should allow to add new key', function() {
        this.stats.add('counter');
        this.stats.data.counter.must.be(1);
    });

    it('should increment existing keys', function() {
        this.stats.add('counter');
        this.stats.add('counter');
        this.stats.data.counter.must.be(2);
    });
});

@@ -11,16 +11,53 @@
 t';%0Avar 
+assert = require('chai').assert,%0A    
 Stats = 
@@ -81,16 +81,16 @@
 tats');%0A
-
 %0Adescrib
@@ -270,32 +270,45 @@
 nter');%0A        
+assert.equal(
 this.stats.data.
@@ -314,25 +314,18 @@
 .counter
-.must.be(
+, 
 1);%0A    
@@ -453,32 +453,45 @@
 nter');%0A        
+assert.equal(
 this.stats.data.
@@ -501,17 +501,10 @@
 nter
-.must.be(
+, 
 2);%0A

Migrate Stats to chai