-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✏️ Exports `HttpClientException` * 🚧 Deleted test file * 🚚 Rename & added one test * Fix #263: Message updating methods now return `dynamic` * Fix #265: Update the `stopPoll` method * version bump --------- Co-authored-by: Sreelal TS <heysreelal@gmail.com>
- Loading branch information
1 parent
d0b8ec1
commit b87fab9
Showing
5 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!"); | ||
}); | ||
}); | ||
} |