31 Commits

Author SHA1 Message Date
Matt Rubin c8a16be470 Update copyright notice dates 2023-02-12 13:46:12 -05:00
Matt Rubin fd1200f59f Fix UITableViewAlertForLayoutOutsideViewHierarchy warnings in tests 2023-02-12 11:31:56 -05:00
Matt Rubin a862a2fe5b Fix TokenListViewController tests 2023-02-11 11:46:23 -05:00
Matt Rubin a8a7e331cb Wrap long lines 2018-09-25 18:38:31 -04:00
Matt Rubin b24417c36a Fix tests 2018-09-25 18:21:51 -04:00
Matt Rubin 0e459e06f4 Update copyright notice dates 2018-04-23 23:42:49 -04:00
Matt Rubin f2e67d1eee Replace deprecated usage of flatMap with the new compactMap 2018-04-04 22:02:36 -04:00
Matt Rubin f400336961 Fix tests 2017-12-21 00:20:15 -05:00
Matt Rubin d220272320 Fix test compilation 2017-11-07 18:16:55 -05:00
Matt Rubin fdcf7dff39 Fix tests for the new view model parameters 2017-04-03 02:03:17 -04:00
Matt Rubin 66dd742db1 Fix the rest of the Swift 3 conversion errors 2017-03-31 19:07:06 -04:00
Matt Rubin cb17789958 Use the automated tools to upgrade to Swift 3 2017-03-31 18:08:38 -04:00
Matt Rubin 99c3232638 Fix indentation and align function parameters 2017-02-11 20:44:02 -05:00
Matt Rubin b272c8aa31 Add testScrollToLastInsert() and log scrolling in the MockTableView 2017-01-06 21:47:43 -05:00
Matt Rubin 155985cd94 Clean up whitespace 2017-01-06 17:20:48 -05:00
Matt Rubin 862b13ae45 Improve testNumberOfRowsAndSection() to check cell contents 2017-01-06 13:41:47 -05:00
Matt Rubin 72c7620a1b Check the cell in testUpdatesExistingToken() to be sure it updates 2017-01-06 13:25:35 -05:00
Matt Rubin b205c730c9 Add comments and remove stubs 2017-01-06 00:10:26 -05:00
Matt Rubin 15a7d108f8 Remove unused capture of dispatched actions in tests 2017-01-06 00:08:14 -05:00
Matt Rubin 95dcd19ffe Clean up testUpdatesExistingRow() 2017-01-06 00:05:44 -05:00
Matt Rubin 21e600486c Add mockPersistentToken(name:issuer:secret:) helper 2017-01-06 00:01:22 -05:00
Matt Rubin 3f7cb17799 Finish implementation of testUpdatesExistingRow() 2017-01-05 23:56:40 -05:00
Matt Rubin 6c14c6f70a Add beginUpdates() and endUpdates() calls to the MockTableView log 2017-01-05 23:38:29 -05:00
Matt Rubin 0bb73cb75c Implement equality for MockTableView.ChangeType to simplify assertions 2017-01-05 23:30:54 -05:00
Matt Rubin d2c5eda12e Set up the specific controller needed inside each test 2017-01-05 23:13:12 -05:00
Matt Rubin 7d3b5b491c Refactor TokenListViewControllerTest setup 2017-01-05 23:00:38 -05:00
Matt Rubin 6eaa3abba4 Remove mockListViewModel(list:action:)
Most call sites didn't use the action or effect, making mockList(list:) sufficient.
2017-01-05 22:55:37 -05:00
Matt Rubin eb812bcade Remove unnecessary buildController(withViewModel:dispatcher:) function 2017-01-05 22:44:59 -05:00
Matt Rubin 8d39e50317 Use a UUID for test token identifiers 2017-01-05 19:58:57 -05:00
Matt Rubin 0f3d709431 Fix linter and compiler warnings 2017-01-05 19:39:15 -05:00
Robert Collins 8a32fcdaac Adds unit tests for TokenListViewController 2017-01-05 19:13:57 -05:00