1
1
open Ava
2
2
3
- ava -> test (` Successfully get Bool value when the env is "1"` , t => {
3
+ test (` Successfully get Bool value when the env is "1"` , t => {
4
4
let envSafe = EnvSafe .make (
5
5
~env = Obj .magic ({
6
6
"BOOL_ENV" : "1" ,
@@ -14,7 +14,7 @@ ava->test(`Successfully get Bool value when the env is "1"`, t => {
14
14
}, ())
15
15
})
16
16
17
- ava -> test (` Successfully get Bool value when the env is "t"` , t => {
17
+ test (` Successfully get Bool value when the env is "t"` , t => {
18
18
let envSafe = EnvSafe .make (
19
19
~env = Obj .magic ({
20
20
"BOOL_ENV" : "t" ,
@@ -28,7 +28,7 @@ ava->test(`Successfully get Bool value when the env is "t"`, t => {
28
28
}, ())
29
29
})
30
30
31
- ava -> test (` Successfully get Bool value when the env is "true"` , t => {
31
+ test (` Successfully get Bool value when the env is "true"` , t => {
32
32
let envSafe = EnvSafe .make (
33
33
~env = Obj .magic ({
34
34
"BOOL_ENV" : "true" ,
@@ -42,7 +42,7 @@ ava->test(`Successfully get Bool value when the env is "true"`, t => {
42
42
}, ())
43
43
})
44
44
45
- ava -> test (` Successfully get Bool value when the env is "false"` , t => {
45
+ test (` Successfully get Bool value when the env is "false"` , t => {
46
46
let envSafe = EnvSafe .make (
47
47
~env = Obj .magic ({
48
48
"BOOL_ENV" : "false" ,
@@ -56,7 +56,7 @@ ava->test(`Successfully get Bool value when the env is "false"`, t => {
56
56
}, ())
57
57
})
58
58
59
- ava -> test (` Successfully get Bool value when the env is "f"` , t => {
59
+ test (` Successfully get Bool value when the env is "f"` , t => {
60
60
let envSafe = EnvSafe .make (
61
61
~env = Obj .magic ({
62
62
"BOOL_ENV" : "f" ,
@@ -70,7 +70,7 @@ ava->test(`Successfully get Bool value when the env is "f"`, t => {
70
70
}, ())
71
71
})
72
72
73
- ava -> test (` Successfully get Bool value when the env is "0"` , t => {
73
+ test (` Successfully get Bool value when the env is "0"` , t => {
74
74
let envSafe = EnvSafe .make (
75
75
~env = Obj .magic ({
76
76
"BOOL_ENV" : "0" ,
@@ -84,7 +84,7 @@ ava->test(`Successfully get Bool value when the env is "0"`, t => {
84
84
}, ())
85
85
})
86
86
87
- ava -> test (` Successfully get Literal Bool (true) value when the env is "1"` , t => {
87
+ test (` Successfully get Literal Bool (true) value when the env is "1"` , t => {
88
88
let envSafe = EnvSafe .make (
89
89
~env = Obj .magic ({
90
90
"BOOL_ENV" : "1" ,
@@ -98,7 +98,7 @@ ava->test(`Successfully get Literal Bool (true) value when the env is "1"`, t =>
98
98
}, ())
99
99
})
100
100
101
- ava -> test (` Successfully get Literal Bool (true) value when the env is "t"` , t => {
101
+ test (` Successfully get Literal Bool (true) value when the env is "t"` , t => {
102
102
let envSafe = EnvSafe .make (
103
103
~env = Obj .magic ({
104
104
"BOOL_ENV" : "t" ,
@@ -112,7 +112,7 @@ ava->test(`Successfully get Literal Bool (true) value when the env is "t"`, t =>
112
112
}, ())
113
113
})
114
114
115
- ava -> test (` Successfully get Literal Bool (true) value when the env is "true"` , t => {
115
+ test (` Successfully get Literal Bool (true) value when the env is "true"` , t => {
116
116
let envSafe = EnvSafe .make (
117
117
~env = Obj .magic ({
118
118
"BOOL_ENV" : "true" ,
@@ -126,7 +126,7 @@ ava->test(`Successfully get Literal Bool (true) value when the env is "true"`, t
126
126
}, ())
127
127
})
128
128
129
- ava -> test (` Successfully get Lietarl Bool (false) value when the env is "false"` , t => {
129
+ test (` Successfully get Lietarl Bool (false) value when the env is "false"` , t => {
130
130
let envSafe = EnvSafe .make (
131
131
~env = Obj .magic ({
132
132
"BOOL_ENV" : "false" ,
@@ -144,7 +144,7 @@ ava->test(`Successfully get Lietarl Bool (false) value when the env is "false"`,
144
144
}, ())
145
145
})
146
146
147
- ava -> test (` Successfully get Lietarl Bool (false) value when the env is "f"` , t => {
147
+ test (` Successfully get Lietarl Bool (false) value when the env is "f"` , t => {
148
148
let envSafe = EnvSafe .make (
149
149
~env = Obj .magic ({
150
150
"BOOL_ENV" : "f" ,
@@ -162,7 +162,7 @@ ava->test(`Successfully get Lietarl Bool (false) value when the env is "f"`, t =
162
162
}, ())
163
163
})
164
164
165
- ava -> test (` Successfully get Lietarl Bool (false) value when the env is "0"` , t => {
165
+ test (` Successfully get Lietarl Bool (false) value when the env is "0"` , t => {
166
166
let envSafe = EnvSafe .make (
167
167
~env = Obj .magic ({
168
168
"BOOL_ENV" : "0" ,
@@ -180,7 +180,7 @@ ava->test(`Successfully get Lietarl Bool (false) value when the env is "0"`, t =
180
180
}, ())
181
181
})
182
182
183
- ava -> test (` Fails to get Bool value when the env is "2"` , t => {
183
+ test (` Fails to get Bool value when the env is "2"` , t => {
184
184
let envSafe = EnvSafe .make (
185
185
~env = Obj .magic ({
186
186
"BOOL_ENV" : "2" ,
@@ -193,19 +193,18 @@ ava->test(`Fails to get Bool value when the env is "2"`, t => {
193
193
() => {
194
194
envSafe -> EnvSafe .close ()
195
195
},
196
- ~expectations = ThrowsException . make (
197
- ~ name = "TypeError" ,
198
- ~ message = String ( ` ========================================
196
+ ~expectations = {
197
+ name : "TypeError" ,
198
+ message : ` ========================================
199
199
❌ Invalid environment variables:
200
200
BOOL_ENV ("2"): Failed parsing at root. Reason: Expected Bool, received String
201
- ========================================` ),
202
- (),
203
- ),
201
+ ========================================` ,
202
+ },
204
203
(),
205
204
)
206
205
})
207
206
208
- ava -> test (` Successfully get optional Bool value when the env is "1"` , t => {
207
+ test (` Successfully get optional Bool value when the env is "1"` , t => {
209
208
let envSafe = EnvSafe .make (
210
209
~env = Obj .magic ({
211
210
"BOOL_ENV" : "1" ,
0 commit comments