var model = require('../app/model/fm')


exports.testAdd = function(test) {
  var value = {
    uid: '123',
    type: 'Fm',
    name: ''
  };
  if(!model.findById('123'))
  {
    model.add(value);
  }
  test.done();
};

exports.testAll = function(test){
  var length = model.all().length;
  test.equal(length, 1);
  test.done();
};

@@ -128,16 +128,20 @@
  name: '
+test
 '%0A  %7D;%0A 
@@ -313,24 +313,155 @@
 , 1);%0A  test.done();%0A%7D;%0A
+%0A%0Aexports.testFindById = function(test)%7B%0A  var value =  model.findById('123');%0A  test.equal(value.name, 'test');%0A  test.done();%0A%7D;%0A

add test for findById