Fix bad ops.length assignment in tests
Dan Abramov committed
Nov 14, 2016 at 00:30 UTC
e6a0de54635ee003a29efa55e51dd6e97587d40e
1 file changed
+4
-4
src/renderers/shared/fiber/__tests__/ReactIncremental-test.js
+4
-4
@@ -1596,7 +1596,7 @@ describe('ReactIncremental', () => {
1596
}
1597
}
1598
1599
- ops.length = [];
1599
+ ops.length = 0;
1600
ReactNoop.render(
1601
<Intl locale="fr">
1602
<ShowLocale />
@@ -1612,7 +1612,7 @@ describe('ReactIncremental', () => {
1612
'ShowBoth {"locale":"fr"}',
1613
]);
1614
1615
- ops.length = [];
1615
+ ops.length = 0;
1616
ReactNoop.render(
1617
<Intl locale="de">
1618
<ShowLocale />
@@ -1628,7 +1628,7 @@ describe('ReactIncremental', () => {
1628
'ShowBoth {"locale":"de"}',
1629
]);
1630
1631
- ops.length = [];
1631
+ ops.length = 0;
1632
ReactNoop.render(
1633
<Intl locale="sv">
1634
<ShowLocale />
@@ -1642,7 +1642,7 @@ describe('ReactIncremental', () => {
1642
'Intl null',
1643
]);
1644
1645
- ops.length = [];
1645
+ ops.length = 0;
1646
ReactNoop.render(
1647
<Intl locale="en">
1648
<ShowLocale />