Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test('should create db file when invoking the action', () async {
- await createDatabase();
- final dbDirectory = new Directory(fullDbDirectoryPath());
- final directoryExists = dbDirectory.existsSync();
- expect(directoryExists, isTrue);
- });
- test('create watch group should create child wg node', () async {
- await createDatabase();
- final watchGroupName = 'myWatchGroup';
- await createWatchGroup(requester, linkPath, dbPath, watchGroupName);
- final nodeValue =
- await requester.getRemoteNode('$linkPath/$dbPath/$watchGroupName');
- expect(nodeValue.configs[r'$$wg'], isTrue);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement