Advertisement
Guest User

Untitled

a guest
May 13th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.59 KB | None | 0 0
  1. test('should create db file when invoking the action', () async {
  2.   await createDatabase();
  3.   final dbDirectory = new Directory(fullDbDirectoryPath());
  4.   final directoryExists = dbDirectory.existsSync();
  5.   expect(directoryExists, isTrue);
  6. });
  7. test('create watch group should create child wg node', () async {
  8.   await createDatabase();
  9.   final watchGroupName = 'myWatchGroup';
  10.   await createWatchGroup(requester, linkPath, dbPath, watchGroupName);
  11.   final nodeValue =
  12.       await requester.getRemoteNode('$linkPath/$dbPath/$watchGroupName');
  13.   expect(nodeValue.configs[r'$$wg'], isTrue);
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement