Skip to content

Commit 3a1eb45

Browse files
committed
Fixed test gating. Fixed description.
1 parent 1c2abd6 commit 3a1eb45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-native-renderer/src/__tests__/ReactNativeAttributePayloadFabric-test.internal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
const {diff, create} = require('../ReactNativeAttributePayloadFabric');
1212

13-
describe('ReactNativeAttributePayload.create', () => {
13+
describe('ReactNativeAttributePayloadFabric.create', () => {
1414
it('should work with simple example', () => {
1515
expect(create({b: 2, c: 3}, {a: true, b: true})).toEqual({
1616
b: 2,
@@ -171,7 +171,7 @@ describe('ReactNativeAttributePayload.create', () => {
171171
});
172172
});
173173

174-
describe('ReactNativeAttributePayload.diff', () => {
174+
describe('ReactNativeAttributePayloadFabric.diff', () => {
175175
it('should work with simple example', () => {
176176
expect(diff({a: 1, c: 3}, {b: 2, c: 3}, {a: true, b: true})).toEqual({
177177
a: null,
@@ -201,6 +201,7 @@ describe('ReactNativeAttributePayload.diff', () => {
201201
expect(diff({a: 1}, {b: 2}, {})).toEqual(null);
202202
});
203203

204+
// @gate !enableShallowPropDiffing
204205
it('should use the diff attribute', () => {
205206
const diffA = jest.fn((a, b) => true);
206207
const diffB = jest.fn((a, b) => false);
@@ -215,7 +216,6 @@ describe('ReactNativeAttributePayload.diff', () => {
215216
expect(diffB).toBeCalledWith([3], [4]);
216217
});
217218

218-
// @gate !enableShallowPropDiffing
219219
it('should not use the diff attribute on addition/removal', () => {
220220
const diffA = jest.fn();
221221
const diffB = jest.fn();

0 commit comments

Comments
 (0)