Skip to content

Commit 4482fc4

Browse files
committed
Match SaneDisposedError specifically
1 parent 7c54f7c commit 4482fc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/sane/test/sane_singleton_test.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ void main() {
1818
});
1919

2020
test('throws upon use', () {
21-
expect(() => sane.getDevices(localOnly: true), throwsStateError);
21+
expect(
22+
() => sane.getDevices(localOnly: true),
23+
throwsA(isA<SaneDisposedError>()),
24+
);
2225
});
2326

2427
test('can reinstiate with new instance', () {

0 commit comments

Comments
 (0)