Advertisement
Guest User

Untitled

a guest
May 13th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.80 KB | None | 0 0
  1.   group('with database', () {
  2.     setUp(() async {
  3.       await createDatabase();
  4.     });
  5.  
  6.     test('create watch group should create child watchgroup node', () async {
  7.       await createWatchGroup(requester, linkPath, dbPath, watchGroupName);
  8.  
  9.       final nodeValue =
  10.           await requester.getRemoteNode('$linkPath/$dbPath/$watchGroupName');
  11.  
  12.       expect(nodeValue.configs[r'$$wg'], isTrue);
  13.     });
  14.  
  15.     group('with watch group', () {
  16.       setUp(() async {
  17.         createWatchGroup(requester, linkPath, dbPath, watchGroupName);
  18.       });
  19.  
  20.       test('watches should be children of watch group', () async {
  21.         final nodeValue =
  22.             await requester.getRemoteNode('$linkPath/$dbPath/$watchGroupName');
  23.  
  24.         expect(nodeValue.configs[r'$$wg'], isTrue);
  25.       });
  26.     });
  27.   });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement