add tests to log

This commit is contained in:
Matias Alejo Garcia 2014-12-02 11:55:29 -03:00
commit 43bd277959
4 changed files with 51 additions and 6 deletions

View file

@ -1,8 +1,12 @@
'use strict';
var _ = require('lodash');
var preconditions = require('preconditions').singleton();
function LocalStorage() {
this.type = 'DB';
preconditions.checkState(typeof localStorage !== 'undefined',
'localstorage not available, cannot run plugin');
};
LocalStorage.prototype.init = function() {