testCacheUsage.js 299 B

1234567891011
  1. /**
  2. * Created by Tony on 2017/3/20.
  3. */
  4. var test = require('tape');
  5. var cache = require('../../../public/cache/cacheUtil');
  6. test('test cache usage:', function(t) {
  7. cache.setCache("unit_TestKey","hello my cache!");
  8. t.equal(cache.getCache("unit_TestKey"), "hello my cache!")
  9. t.end();
  10. })