chore: Move the drift_offline_first to legacy in favor of Serverpod implementation (#32)
This commit is contained in:
parent
027aec5ed0
commit
cbc472523b
1 changed files with 13575 additions and 284 deletions
23
legacy/drift_offline_sync/test/utils/user.dart
Normal file
23
legacy/drift_offline_sync/test/utils/user.dart
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import 'package:test/test.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
// NOTE: Generated once per test so that the tests are deterministic, but also
|
||||
// isolated between each other.
|
||||
String get testNodeId {
|
||||
_testNodeId ??= const Uuid().v7();
|
||||
addTearDown(() {
|
||||
_testNodeId = null;
|
||||
});
|
||||
return _testNodeId!;
|
||||
}
|
||||
|
||||
String get testUserId {
|
||||
_testUserId ??= const Uuid().v7();
|
||||
addTearDown(() {
|
||||
_testUserId = null;
|
||||
});
|
||||
return _testUserId!;
|
||||
}
|
||||
|
||||
String? _testNodeId;
|
||||
String? _testUserId;
|
||||
Loading…
Reference in a new issue