catbox-fake

Fake catbox engine used to test catbox-fallback.

Usage no npm install needed!

<script type="module">
  import catboxFake from 'https://cdn.skypack.dev/catbox-fake';
</script>

README

Catbox Fake

Fake catbox is a mock engine used to test catbox-fallback. It can be used to test other things.

Lead maintainer: Simon Lévesque

Current version: Current Version Build Status

Options

  • trojan: function(methods) - A function that will be called on client initialization. This methods receives as first argument an object containing client's special methods. The object has these properties:
    • throw: function(enable) - tells the engine to always throw an error
      • enable - A boolean to enable or not this feature
    • ready: function(enable) - tells the engine to say if it is ready or not
      • enable - A boolean for the ready status
    • delay: function(value) - tells the engine to wait a while before returning
      • value - A number for milliseconds