twonly-app-dependencies/pointycastle/test/macs/poly1305_web_test.dart
2025-12-07 16:10:41 +01:00

22 lines
548 B
Dart

@TestOn('js')
// See file LICENSE for more information.
library test.macs.poly1305_test;
import 'package:pointycastle/export.dart';
import 'package:pointycastle/src/platform_check/platform_check.dart';
import 'package:test/test.dart';
void main() {
group('Poly1305 - js', () {
test('must emit PlatformException', () {
expect(() {
Poly1305.withCipher(AESEngine());
}, throwsA(TypeMatcher<PlatformException>()));
expect(() {
Poly1305();
}, throwsA(TypeMatcher<PlatformException>()));
});
});
}