CodesFirst / new_version_plus

Check if your user has the most recent version of your Flutter app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make VersionStatus constructor public for testing

ernestoA92 opened this issue · comments

For testing this package using Mockito it should be helpful to have VersionStatus constructor public so we can make:

when(newVersionMock.getVersionStatus()).thenAnswer(
        (_) => Future.value(
          VersionStatus(
            localVersion: '1.0.0',
            storeVersion: '1.0.1',
            appStoreLink: 'some link',
          ),
        ),
      );

This way we can have widget test to check if our app behaves right for all the possible cases.

Done, we will take into account your requirement in future versions, we hope to add it.

Thank you very much for your feedback.

Hello good afternoon, the request was added, it will be available in the new version