Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-queue-store-test

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-queue-store-test

Better Queue store test

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Better Queue - Store Tests

This repository is a complement to better-queue. This is useful for ensuring that the store you create is compatible with better-queue, and that guarantees that features in better-queue will work properly.

Getting started

Install this package as a dev dependency and add a mocha test:

npm install --save-dev better-queue-store-test

Usage

In your mocha test directory, add a test like so:

var test = require('better-queue-store-test');

test.basic('My Store Test', {

  create: function (cb) {
    // Prepare your store here ...
    cb(null, myStore);
  },

  destroy: function (cb) {
    // Optionally, you can clean up after your store
    cb();
  }

})

Examples

Look at better-queue-memory, which is used in better-queue for an example of how you should create your store and setup the test.

Contributions

Are welcome!

This library was initially made by the awesome team of engineers at Diamond.

If you haven't already, make sure you install Diamond!

Keywords

FAQs

Package last updated on 12 Oct 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc