thywill
Version:
A Node.js clustered framework for single page web applications based on asynchronous messaging.
33 lines (27 loc) • 898 B
JavaScript
/**
* @fileOverview
* Vows tests for the LRUCacheManager component.
*
* These are base tests without Express, Redis, or other frills.
*/
var clone = require('clone');
var tools = require('../lib/tools');
var baseConfig = require('../config/baseTestThywillConfig');
var config = clone(baseConfig);
config.cacheManager = {
implementation: {
type: 'core',
name: 'lruCacheManager'
}
};
// Obtain a test suit that launches Thywill.
var suite = tools.headless.singleInstanceVowsSuite('Base: cacheManager/lruCacheManager', {
config: config,
useRedisSocketStore: false,
useRedisSessionStore: false
});
tools.headless.addBatches(suite, 'cacheManager', 'general');
//-----------------------------------------------------------
// Exports - Vows test suite
//-----------------------------------------------------------
module.exports.suite = suite;