Add a note about private API dependency for a test
Dan Abramov committed
Nov 24, 2017 at 01:11 UTC
46dd197ceb94ebc4f392a8b4ace347c6e03470fe
1 file changed
+4
-1
packages/events/__tests__/EventPluginRegistry-test.internal.js
+4
-1
@@ -15,7 +15,10 @@ describe('EventPluginRegistry', () => {
15
16
beforeEach(() => {
17
jest.resetModuleRegistry();
18
- // TODO: can we express this test with only public API?
18
+ // These tests are intentionally testing the private injection interface.
19
+ // The public API surface of this is covered by other tests so
20
+ // if `EventPluginRegistry` is ever deleted, these tests should be
21
+ // safe to remove too.
22
EventPluginRegistry = require('events/EventPluginRegistry');
23
24
createPlugin = function(properties) {