An open-source cross-platform alternative to AirDrop
test: update receive history test
Tien Do Nam04cdfa5c5e4c
diff --git a/app/test/unit/provider/receive_history_provider_test.dart b/app/test/unit/provider/receive_history_provider_test.dartindex 443bda75..8610240c 100644--- a/app/test/unit/provider/receive_history_provider_test.dart+++ b/app/test/unit/provider/receive_history_provider_test.dart@@ -63,15 +63,15 @@ void main() {verifyNever(persistenceService.setReceiveHistory(any));});- test('Should remove the 200th entry when adding another', () async {+ test('Should remove the 30th entry when adding another', () async {final service = ReduxNotifier.test(redux: ReceiveHistoryService(persistenceService),- initialState: List.generate(200, (index) => _createEntry(index.toString())),+ initialState: List.generate(30, (index) => _createEntry(index.toString())),);- expect(service.state.length, 200);+ expect(service.state.length, 30);expect(service.state.first, _createEntry('0'));- expect(service.state.last, _createEntry('199'));+ expect(service.state.last, _createEntry('29'));final entry = _createEntry('AAA');@@ -87,10 +87,11 @@ void main() {timestamp: entry.timestamp,));- expect(service.state.length, 200);+ expect(service.state.length, 30);expect(service.state.first, entry);+ expect(service.state.first, _createEntry('AAA'));expect(service.state[1], _createEntry('0'));- expect(service.state.last, _createEntry('198'));+ expect(service.state.last, _createEntry('28'));});test('Should remove an entry', () async {