This package has been deprecated

Author message:

This package has been deprecated. Please find this package under its new name @cloudflare/test-store.

cf-test-store

2.2.6 • Public • Published

cf-test-store

Cloudflare Store Test Util

Installation

$ npm install cf-test-store

Usage

import assert from 'assert';
import {createMockStore} from 'cf-test-store';
 
describe('exampleActions', () => {
  it('should do something', () => {
    const store = createMockStore();
    store.dispatch(exampleActions.doSomething());
    assert.deepEqual(store.getActions(), [{
      type: 'ACTION_ONE'
    }, {
      type: 'ACTION_TWO'
    }]);
  });
});

/cf-test-store/

    Package Sidebar

    Install

    npm i cf-test-store

    Weekly Downloads

    1

    Version

    2.2.6

    License

    BSD-3-Clause

    Unpacked Size

    2.94 kB

    Total Files

    7

    Last publish

    Collaborators

    • lerwincf
    • lbarthonet
    • cf-media-manager
    • jacobbednarz
    • celso
    • cf-radar
    • dash_service_account
    • g4brym
    • snigdha34
    • wrangler-publisher
    • marksteyn
    • chiminator
    • sgoodhew_cf
    • terinjokes
    • third774
    • jsteinberger
    • jasnell
    • asapzacy
    • pcostanzo
    • gregbrimble
    • geelen
    • rexscaria
    • dcruz_cf
    • xuranwang
    • jculvey
    • sejoker
    • vasturiano
    • cf-ci-write
    • segments-write
    • thibmeu
    • xortive
    • gurjinder
    • cf-ci2
    • lvalenta
    • worenga