Add level field to the "showMessage" daemon event. (#9889)

Spawned from a discussion in https://github.com/flutter/flutter-intellij/pull/1003
This commit is contained in:
Todd Volkert
2017-05-08 11:49:47 -07:00
committed by GitHub
parent a625d3e140
commit a29585298e
2 changed files with 4 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ void main() {
final Map<String, dynamic> response = await responses.stream.first;
expect(response['event'], 'daemon.showMessage');
expect(response['params'], isMap);
expect(response['params'], containsPair('level', 'warning'));
expect(response['params'], containsPair('title', 'Unable to list devices'));
expect(response['params'], containsPair('message', contains('Unable to discover Android devices')));
}, overrides: <Type, Generator>{