HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/dev/nowruzgan/rest/node_modules/sails-redis/test/basic.test.js
/**
 * Module dependencies
 */

var TestRunner = require('waterline-adapter-tests');
var packageMD = require('../package.json');
var RedisAdapter = require('../index.js');


// Log an intro message.
console.log('Testing `' + packageMD.name + '`, a Sails/Waterline adapter.');
console.log('Running `waterline-adapter-tests` against '+packageMD.waterlineAdapter.interfaces.length+' interface(s) and '+packageMD.waterlineAdapter.features.length+' feature(s)...');
console.log('|   Interfaces:   '+(packageMD.waterlineAdapter.interfaces.join(', ')||'n/a')+'');
console.log('|   Features:     '+(packageMD.waterlineAdapter.features.join(', ')||'n/a')+'');
console.log('Latest draft of Waterline adapter interface spec:');
console.log('https://github.com/balderdashy/sails-docs/blob/master/adapter-specification.md');


// Use the `waterline-adapter-tests` module to
// run mocha tests against the specified interfaces
// of the currently-implemented Waterline adapter API.
new TestRunner({

  // Load the adapter module.
  adapter: RedisAdapter,

  // Default adapter config to use.
  config: {
    database: 2,
    host: 'localhost'
  },

  // The set of adapter interface layers & specific features to test against.
  interfaces: packageMD.waterlineAdapter.interfaces,
  features: packageMD.waterlineAdapter.features,

});