Add a note about private API dependency for a test

This commit is contained in:
Dan Abramov authored and GitHub committed 2017-11-24 01:11:24 +00:00
1 parent cafe352c1a
commit 46dd197ceb
1 file changed
+4 -1
@@ -15,7 +15,10 @@ describe('EventPluginRegistry', () => {
beforeEach(() => {
jest.resetModuleRegistry();
// TODO: can we express this test with only public API?
// These tests are intentionally testing the private injection interface.
// The public API surface of this is covered by other tests so
// if `EventPluginRegistry` is ever deleted, these tests should be
// safe to remove too.
EventPluginRegistry = require('events/EventPluginRegistry');
createPlugin = function(properties) {