From 46dd197ceb94ebc4f392a8b4ace347c6e03470fe Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 24 Nov 2017 01:11:24 +0000 Subject: [PATCH] Add a note about private API dependency for a test --- .../events/__tests__/EventPluginRegistry-test.internal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/events/__tests__/EventPluginRegistry-test.internal.js b/packages/events/__tests__/EventPluginRegistry-test.internal.js index 6273e77799..3af0a78237 100644 --- a/packages/events/__tests__/EventPluginRegistry-test.internal.js +++ b/packages/events/__tests__/EventPluginRegistry-test.internal.js @@ -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) {