Skip to content

Commit d410bd9

Browse files
gaearonraphamorim
authored andcommitted
Add a note about private API dependency for a test
1 parent e391819 commit d410bd9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/events/__tests__/EventPluginRegistry-test.internal.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ describe('EventPluginRegistry', () => {
1515

1616
beforeEach(() => {
1717
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.
1922
EventPluginRegistry = require('events/EventPluginRegistry');
2023

2124
createPlugin = function(properties) {

0 commit comments

Comments
 (0)