longterm-queue-test

Tests for longterm queue modules

Usage no npm install needed!

<script type="module">
  import longtermQueueTest from 'https://cdn.skypack.dev/longterm-queue-test';
</script>

README

This node module exports a function that takes in a constructor for a longterm.js queue. Custom queue implementations can require this module, and use it to test their implementations.

Tests are run via mocha.

Example

var MyCustomQueue = require('longterm-mongo-queue');
var longtermTest = require('longterm-queue-test');
longtermTest(MyCustomQueue, 'My Queue');