Socket
Socket
Sign inDemoInstall

@aantonov/redis-mock

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aantonov/redis-mock

Redis mock for tests


Version published
Weekly downloads
18
increased by1700%
Maintainers
1
Install size
25.6 kB
Created
Weekly downloads
 

Readme

Source

#redis-mock

NPM version Build Status Coverage Status

Installation

    $ [sudo] npm install --save @aantonov/redis-mock

Usage

    var assert = require('assert');
    var redis_client = require('@aantonov/redis-mock');
    
    it ('Should save string value', (done) => {
        var test_key = 'test_key',
            test_val = 'test_val';
            
        redis_client.set(test_key, test_val, (err) => {
            if (err) return done(err);
            
            assert.equal(redis.store[test_key], test_val);
            
            done();
        });
    });

FAQs

Last updated on 19 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc