We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6f3f9 commit 7c35dacCopy full SHA for 7c35dac
packages/clerk_auth/test/unit/utils/json_serialization_helpers_test.dart
@@ -0,0 +1,23 @@
1
+import 'package:clerk_auth/src/utils/json_serialization_helpers.dart'
2
+ as helpers;
3
+import 'package:test/test.dart';
4
+
5
+void main() {
6
+ group('json_serialization_helpers', () {
7
+ test('isOn returns true for \'required\'', () {
8
+ expect(helpers.isOn('required'), isTrue);
9
+ });
10
11
+ test('isOn returns true for \'on\'', () {
12
+ expect(helpers.isOn('on'), isTrue);
13
14
15
+ test('isOn returns false for \'off\'', () {
16
+ expect(helpers.isOn('off'), isFalse);
17
18
19
+ test('isOn returns false for null', () {
20
+ expect(helpers.isOn(null), isFalse);
21
22
23
+}
0 commit comments