Update works
This commit is contained in:
parent
b5ad764072
commit
f1782c581f
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue