Update works

This commit is contained in:
Tobe O 2018-10-21 12:31:30 -04:00
parent b5ad764072
commit f1782c581f

View file

@ -34,4 +34,12 @@ main() async {
var input = await service.create({'id': id, 'bar': 'baz'});
expect(await service.read(id), input);
});
test('update', () async {
var id = 'hoopla${new DateTime.now().millisecondsSinceEpoch}';
await service.create({'id': id, 'bar': 'baz'});
var output = await service.update(id, {'bar': 'quux'});
expect(output, {'id': id, 'bar': 'quux'});
expect(await service.read(id), output);
});
}