mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 03:46:57 +08:00
tests: add chat model tests(cv: 100)
This commit is contained in:
11
test/dashbot/models/chat_failure_model_test.dart
Normal file
11
test/dashbot/models/chat_failure_model_test.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:apidash/dashbot/core/error/chat_failure.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
group('ChatFailure basics', () {
|
||||
test('toString format', () {
|
||||
const f = ChatFailure('network down', code: '503');
|
||||
expect(f.toString(), 'ChatFailure: network down');
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user