add async to put func call in test that was missing it

This commit is contained in:
Elliot 2025-08-06 17:36:04 -04:00
parent 3f49cb0960
commit aa93858e23

View file

@ -16,7 +16,6 @@ void main() {
await StoreService.init(storeRepository: IsarStoreRepository(db));
});
group('sanitizeUrl', () {
test('Should encode correctly', () {
var unEncodedURL = 'user:password@example.com/addSchemaAndRemovesSlashes////';
@ -68,8 +67,8 @@ void main() {
expect(getServerUrl(), null);
});
test('Returns null if what was set is not a correct url', () {
Store.put(StoreKey.serverEndpoint, 'example.com');
test('Returns null if what was set is not a correct url', () async {
await Store.put(StoreKey.serverEndpoint, 'example.com');
expect(getServerUrl(), null);
});
@ -96,6 +95,5 @@ void main() {
await Store.put(StoreKey.serverEndpoint, complexURL);
expect(getServerUrl(), 'https://user:password@example.com:1337');
});
});
}