We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5875c57 commit 77ccb09Copy full SHA for 77ccb09
objectbox/test/admin_test.dart
@@ -39,4 +39,14 @@ void main() {
39
skip: Admin.isAvailable()
40
? null
41
: 'Admin is not available in the loaded library');
42
+
43
+ test('admin not available', () {
44
+ expect(
45
+ () => Admin(env.store),
46
+ throwsA(predicate((UnsupportedError e) => e.toString().contains(
47
+ 'Admin is not available in the loaded ObjectBox runtime library.'))));
48
+ },
49
+ skip: Admin.isAvailable()
50
+ ? 'Admin is available in the loaded library'
51
+ : false);
52
}
0 commit comments