From b5ad76407203a2c42582bf7e6fd864fa614cf943 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 21 Oct 2018 12:29:04 -0400 Subject: [PATCH] Read works --- test/all_test.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/all_test.dart b/test/all_test.dart index 50d0d536..265458a9 100644 --- a/test/all_test.dart +++ b/test/all_test.dart @@ -20,6 +20,7 @@ main() async { var output = await service.create(input); expect(input, output); }); + test('create without id', () async { var input = {'bar': 'baz'}; var output = await service.create(input); @@ -27,4 +28,10 @@ main() async { expect(output.keys, contains('id')); expect(output, containsPair('bar', 'baz')); }); + + test('read', () async { + var id = 'poobah${new DateTime.now().millisecondsSinceEpoch}'; + var input = await service.create({'id': id, 'bar': 'baz'}); + expect(await service.read(id), input); + }); }