@samitouri / QOS-React-2 / commits / 03464dc148
Fork 0

The library for web and native user interfaces.

Fix `EventPluginRegistry` Unit Tests in GitHub

Dumping the mock cache isn't dirying the modules in the open source version, so we have to unit test a different way. If we can fix the unit test framework, we should revert this. Also, I added strict mode to `EventPluginRegistry.js`. See: https://github.com/facebook/react/pull/91

CommitSyncScript committed Jun 14, 2013 at 16:45 UTC 03464dc148374c1883d02c6aae150fc93ffd85de
2 files changed +28
src/event/EventPluginRegistry.js
+14
@@ -1,4 +1,18 @@
1 /**
2 + * Copyright 2013 Facebook, Inc.
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + *
16 * @providesModule EventPluginRegistry
17 * @typechecks
18 */
src/event/__tests__/EventPluginRegistry-test.js
+14
@@ -1,4 +1,18 @@
1 /**
2 + * Copyright 2013 Facebook, Inc.
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License");
5 + * you may not use this file except in compliance with the License.
6 + * You may obtain a copy of the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS,
12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 + * See the License for the specific language governing permissions and
14 + * limitations under the License.
15 + *
16 * @emails react-core
17 */
18