Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySreelal committed Jan 21, 2024
2 parents cee7ec1 + 1427289 commit 0e7a3f3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/teledart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ export 'src/teledart/event/event.dart';
export 'src/teledart/fetch/abstract_update_fetcher.dart';
export 'src/teledart/fetch/long_polling.dart';
export 'src/teledart/fetch/webhook.dart';
export 'src/util/http_client.dart' show HttpClientException;
12 changes: 0 additions & 12 deletions test/TeleDart_test.dart

This file was deleted.

22 changes: 22 additions & 0 deletions test/teledart_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'dart:io';

import 'package:teledart/teledart.dart';
import 'package:test/test.dart';

void main() {
TeleDart teleDart = TeleDart(
Platform.environment["BOT_TOKEN"]!,
Event(Platform.environment["BOT_USERNAME"] ?? ""),
);
group('Senders', () {
setUp(() {});

test('sendMessage', () async {
final msg = await teleDart.sendMessage(
Platform.environment["CHAT_ID"]!,
"Hello World!",
);
expect(msg.text, "Hello World!");
});
});
}

0 comments on commit 0e7a3f3

Please sign in to comment.