Merge branch 'spike/block2-derisking'
This commit is contained in:
commit
1750f3fa97
22 changed files with 576 additions and 16 deletions
20
apps/app_seeds/test/services/profile_store_test.dart
Normal file
20
apps/app_seeds/test/services/profile_store_test.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:tane/services/profile_store.dart';
|
||||
|
||||
import '../support/test_support.dart';
|
||||
|
||||
void main() {
|
||||
late ProfileStore store;
|
||||
setUp(() => store = ProfileStore(InMemorySecretStore()));
|
||||
|
||||
test('defaults are empty', () async {
|
||||
expect(await store.name(), '');
|
||||
expect(await store.about(), '');
|
||||
});
|
||||
|
||||
test('save then read back, trimmed', () async {
|
||||
await store.save(name: ' Alicia ', about: ' tomate rosa ');
|
||||
expect(await store.name(), 'Alicia');
|
||||
expect(await store.about(), 'tomate rosa');
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue