Skip to content

Commit

Permalink
fixes some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsprint09 committed Aug 13, 2018
1 parent 55f3f67 commit 41554f5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Source/ChangeAnimator/CollectionViewChangesAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
///
/// - Parameters:
/// - collectionView: the collection view to be animated
/// - dataProviderObservable: observable for listening to changes of a data provider
/// - observable: observable for listening to changes of a data provider
public init(collectionView: UICollectionView, observable: DataProviderObservable) {
self.collectionView = collectionView
self.observable = observable
Expand Down
2 changes: 1 addition & 1 deletion Source/ChangeAnimator/TableViewChangesAnimator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
///
/// - Parameters:
/// - tableView: the table view which should be animated
/// - dataProviderObservable: observable for listing to changes of a data provider
/// - observable: observable for listing to changes of a data provider
/// - configuration: configure animations for table view change actions.
public convenience init(tableView: UITableView,
observable: DataProviderObservable,
Expand Down
2 changes: 1 addition & 1 deletion Source/DataProvider/Changes/DataProviderObservable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Foundation
/// A observable which notifies about data provider changes.
public protocol DataProviderObservable: class {

/// Observe the changes of an data provider.
/// Observe the changes of a data provider.
///
/// Can be use to animate changes in a TableView or in any other view hirachy.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public final class DefaultDataProviderObservable: DataProviderObservable {
/// Creates a instance of the obsavable.
public init() {}

/// Observe the changes of an data provider.
/// Observe the changes of a data provider.
///
/// Can be use to animate changes in a TableView or in any other view hirachy.
///
Expand Down
8 changes: 4 additions & 4 deletions Tests/SourcingTests/DataSource/CollectionViewDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class CollectionViewDataSourceSingleCellTest: XCTestCase {
XCTAssertEqual(rowCount, 3)
}

func testDequeCells() {
func testDequeueCells() {
//Given
let dataSource = CollectionViewDataSource(dataProvider: dataProvider, cellConfiguration: cell)
let indexPath = IndexPath(row: 2, section: 1)
Expand All @@ -80,19 +80,19 @@ class CollectionViewDataSourceSingleCellTest: XCTestCase {
XCTAssertTrue(cellAtIdexPath is UICollectionViewCellMock<Int>)
}

func testDequeSupplementaryView() {
func testDequeueSupplementaryView() {
//Given
let elementKind = "elementKind"
var configuredObject: Int?
var configurationCount = 0

let supplemenaryViewConfiguration = ReusableViewConfiguration<SupplementaryViewMock, Int>(reuseIdentifier: reuseIdentifier,
let supplementaryViewConfiguration = ReusableViewConfiguration<SupplementaryViewMock, Int>(reuseIdentifier: reuseIdentifier,
type: .supplementaryView(kind: elementKind), configuration: { (_, _, object) in
configuredObject = object
configurationCount += 1
})
let dataSource = CollectionViewDataSource(dataProvider: dataProvider, cellConfiguration: cell,
supplementaryViewConfiguration: supplemenaryViewConfiguration)
supplementaryViewConfiguration: supplementaryViewConfiguration)
let indexPath = IndexPath(row: 2, section: 1)

//When
Expand Down
2 changes: 1 addition & 1 deletion Tests/SourcingTests/TableViewDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TableViewDataSourceSingleCellTest: XCTestCase {
XCTAssertEqual(rowCount, 3)
}

func testDequeCells() {
func testDequeueCells() {
//Given
let cell = ReusableViewConfiguration<UITableViewCellMock<Int>, Int>(reuseIdentifier: reuseIdentifier)

Expand Down

0 comments on commit 41554f5

Please sign in to comment.