Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jjatie committed Feb 17, 2019
1 parent 9b99d1b commit 636f623
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Tests/Charts/BarChartTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BarChartTests: FBSnapshotTestCase

func setupDefaultDataSet(chartDataEntries: [ChartDataEntry]) -> BarChartDataSet
{
let dataSet = BarChartDataSet(values: chartDataEntries, label: "Bar chart unit test data")
let dataSet = BarChartDataSet(entries: chartDataEntries, label: "Bar chart unit test data")
dataSet.drawIconsEnabled = false
dataSet.iconsOffset = CGPoint(x: 0, y: -10.0)
return dataSet
Expand Down
4 changes: 2 additions & 2 deletions Tests/Charts/CombinedChartTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CombinedChartTests: FBSnapshotTestCase
entries.append(BarChartDataEntry(x: Double(i), y: value, icon: UIImage(named: "icon", in: Bundle(for: self.classForCoder), compatibleWith: nil)))
}

barDataSet = BarChartDataSet(values: entries, label: "Bar chart unit test data")
barDataSet = BarChartDataSet(entries: entries, label: "Bar chart unit test data")
barDataSet.drawIconsEnabled = false

let data = BarChartData(dataSet: barDataSet)
Expand All @@ -67,7 +67,7 @@ class CombinedChartTests: FBSnapshotTestCase
entries.append(ChartDataEntry(x: Double(i), y: value, icon: UIImage(named: "icon", in: Bundle(for: self.classForCoder), compatibleWith: nil)))
}

lineDataSet = LineChartDataSet(values: entries, label: "Line chart unit test data")
lineDataSet = LineChartDataSet(entries: entries, label: "Line chart unit test data")
lineDataSet.drawIconsEnabled = false
return LineChartData(dataSet: lineDataSet)
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Charts/LineChartTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class LineChartTests: FBSnapshotTestCase
entries.append(ChartDataEntry(x: Double(i), y: value, icon: UIImage(named: "icon", in: Bundle(for: self.classForCoder), compatibleWith: nil)))
}

dataSet = LineChartDataSet(values: entries, label: "First unit test data")
dataSet = LineChartDataSet(entries: entries, label: "First unit test data")
dataSet.drawIconsEnabled = false
dataSet.iconsOffset = CGPoint(x: 0, y: 20.0)

Expand Down
2 changes: 1 addition & 1 deletion Tests/Charts/PieChartTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PieChartTests: FBSnapshotTestCase
entries.append(PieChartDataEntry(value: value, icon: UIImage(named: "icon", in: Bundle(for: self.classForCoder), compatibleWith: nil)))
}

dataSet = PieChartDataSet(values: entries, label: "First unit test data")
dataSet = PieChartDataSet(entries: entries, label: "First unit test data")
dataSet.drawIconsEnabled = false
dataSet.iconsOffset = CGPoint(x: 0, y: 20.0)

Expand Down

0 comments on commit 636f623

Please sign in to comment.