halkyon/packages/halkyon_base_server/test/integration/configuration_test.dart

27 lines
678 B
Dart
Raw Normal View History

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'),
),
),
);
});
});
}