test(shorebird_code_push_api): add missing VersionStore test case (#46)

This commit is contained in:
Moksh Mahajan
2023-03-08 22:45:44 +05:30
committed by GitHub
parent dcf5f080ad
commit cfa89fa70d
@@ -42,6 +42,20 @@ void main() {
equals('0.0.2'),
);
});
test('returns null when current version is the latest version', () {
final tempDir = Directory.systemTemp.createTempSync();
final store = VersionStore(cachePath: tempDir.path)
..addVersion('0.0.1', [])
..addVersion('0.0.2', []);
expect(
store.latestVersionForClient(
'empty-client-id',
currentVersion: '0.0.2',
),
isNull,
);
});
});
});
}