Skip to content

Commit

Permalink
Match SaneDisposedError specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftplacer committed Nov 4, 2024
1 parent 2c40ae0 commit c785668
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/sane/test/sane_singleton_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ void main() {
});

test('throws upon use', () {
expect(() => sane.getDevices(localOnly: true), throwsStateError);
expect(
() => sane.getDevices(localOnly: true),
throwsA(isA<SaneDisposedError>()),
);
});

test('can reinstiate with new instance', () {
Expand Down

0 comments on commit c785668

Please sign in to comment.