From f6a92ea8a5cb8bcf86a969b2ac9c211d19eb5f25 Mon Sep 17 00:00:00 2001 From: Rogelio Guzman Date: Thu, 21 Apr 2016 13:45:25 -0700 Subject: [PATCH] Prefix INIT action with @@redux/ --- src/instrument.js | 2 +- test/instrument.spec.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/instrument.js b/src/instrument.js index 7ff63a2f..51a68d60 100644 --- a/src/instrument.js +++ b/src/instrument.js @@ -60,7 +60,7 @@ export const ActionCreators = { } }; -const INIT_ACTION = { type: '@@INIT' }; +const INIT_ACTION = { type: '@@redux/INIT' }; /** * Computes the next entry in the log by applying an action. diff --git a/test/instrument.spec.js b/test/instrument.spec.js index bc8bfd24..7025c730 100644 --- a/test/instrument.spec.js +++ b/test/instrument.spec.js @@ -96,7 +96,7 @@ describe('instrument', () => { }); it('should toggle an action', () => { - // actionId 0 = @@INIT + // actionId 0 = @@redux/INIT store.dispatch({ type: 'INCREMENT' }); store.dispatch({ type: 'DECREMENT' }); store.dispatch({ type: 'INCREMENT' }); @@ -110,7 +110,7 @@ describe('instrument', () => { }); it('should set multiple action skip', () => { - // actionId 0 = @@INIT + // actionId 0 = @@redux/INIT store.dispatch({ type: 'INCREMENT' }); store.dispatch({ type: 'INCREMENT' }); store.dispatch({ type: 'INCREMENT' }); @@ -127,7 +127,7 @@ describe('instrument', () => { }); it('should sweep disabled actions', () => { - // actionId 0 = @@INIT + // actionId 0 = @@redux/INIT store.dispatch({ type: 'INCREMENT' }); store.dispatch({ type: 'DECREMENT' }); store.dispatch({ type: 'INCREMENT' }); @@ -237,7 +237,7 @@ describe('instrument', () => { let monitoredLiftedStore = monitoredStore.liftedStore; expect(reducerCalls).toBe(1); - // actionId 0 = @@INIT + // actionId 0 = @@redux/INIT monitoredStore.dispatch({ type: 'INCREMENT' }); monitoredStore.dispatch({ type: 'INCREMENT' }); monitoredStore.dispatch({ type: 'INCREMENT' }); @@ -330,7 +330,7 @@ describe('instrument', () => { configuredLiftedStore = configuredStore.liftedStore; }); - it('should auto-commit earliest non-@@INIT action when maxAge is reached', () => { + it('should auto-commit earliest non-@@redux/INIT action when maxAge is reached', () => { configuredStore.dispatch({ type: 'INCREMENT' }); configuredStore.dispatch({ type: 'INCREMENT' }); let liftedStoreState = configuredLiftedStore.getState();