]> source.dussan.org Git - sonarqube.git/commitdiff
fix treemap test
authorStas Vilchik <vilchiks@gmail.com>
Mon, 30 Nov 2015 15:16:16 +0000 (16:16 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 30 Nov 2015 15:16:16 +0000 (16:16 +0100)
server/sonar-web/tests/components/charts/treemap-test.js

index f5322ed26a0321e9fc0c421633d75728639b6741..3200db3b11aff21841af89899f5a9313c2d40632 100644 (file)
@@ -13,7 +13,8 @@ describe('Treemap', function () {
       { size: 30, color: '#777', label: 'SonarQube :: Web' },
       { size: 20, color: '#777', label: 'SonarQube :: Search' }
     ];
-    let chart = TestUtils.renderIntoDocument(<Treemap items={items} width={100} height={100}/>);
+    let chart = TestUtils.renderIntoDocument(
+        <Treemap items={items} width={100} height={100} breadcrumbs={[]} canBeClicked={() => true}/>);
     expect(TestUtils.scryRenderedDOMComponentsWithClass(chart, 'treemap-cell')).to.have.length(3);
   });