27 lines
678 B
Dart
27 lines
678 B
Dart
|
|
import 'package:test/test.dart';
|
||
|
|
|
||
|
|
import 'test_tools/serverpod_test_tools.dart';
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
withServerpod('A host that never configured the module', (
|
||
|
|
sessionBuilder,
|
||
|
|
endpoints,
|
||
|
|
) {
|
||
|
|
test('is told so, rather than answering with defaults of no one', () async {
|
||
|
|
await expectLater(
|
||
|
|
endpoints.instance.basics(
|
||
|
|
sessionBuilder.copyWith(
|
||
|
|
authentication: AuthenticationOverride.unauthenticated(),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
throwsA(
|
||
|
|
isA<StateError>().having(
|
||
|
|
(error) => error.message,
|
||
|
|
'message',
|
||
|
|
contains('HalkyonBase.configure'),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
});
|
||
|
|
});
|
||
|
|
}
|