11open Ava
22
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 => {
44 let envSafe = EnvSafe .make (
55 ~env = Obj .magic ({
66 "BOOL_ENV" : "1" ,
@@ -14,7 +14,7 @@ ava->test(`Successfully get Bool value when the env is "1"`, t => {
1414 }, ())
1515})
1616
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 => {
1818 let envSafe = EnvSafe .make (
1919 ~env = Obj .magic ({
2020 "BOOL_ENV" : "t" ,
@@ -28,7 +28,7 @@ ava->test(`Successfully get Bool value when the env is "t"`, t => {
2828 }, ())
2929})
3030
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 => {
3232 let envSafe = EnvSafe .make (
3333 ~env = Obj .magic ({
3434 "BOOL_ENV" : "true" ,
@@ -42,7 +42,7 @@ ava->test(`Successfully get Bool value when the env is "true"`, t => {
4242 }, ())
4343})
4444
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 => {
4646 let envSafe = EnvSafe .make (
4747 ~env = Obj .magic ({
4848 "BOOL_ENV" : "false" ,
@@ -56,7 +56,7 @@ ava->test(`Successfully get Bool value when the env is "false"`, t => {
5656 }, ())
5757})
5858
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 => {
6060 let envSafe = EnvSafe .make (
6161 ~env = Obj .magic ({
6262 "BOOL_ENV" : "f" ,
@@ -70,7 +70,7 @@ ava->test(`Successfully get Bool value when the env is "f"`, t => {
7070 }, ())
7171})
7272
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 => {
7474 let envSafe = EnvSafe .make (
7575 ~env = Obj .magic ({
7676 "BOOL_ENV" : "0" ,
@@ -84,7 +84,7 @@ ava->test(`Successfully get Bool value when the env is "0"`, t => {
8484 }, ())
8585})
8686
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 => {
8888 let envSafe = EnvSafe .make (
8989 ~env = Obj .magic ({
9090 "BOOL_ENV" : "1" ,
@@ -98,7 +98,7 @@ ava->test(`Successfully get Literal Bool (true) value when the env is "1"`, t =>
9898 }, ())
9999})
100100
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 => {
102102 let envSafe = EnvSafe .make (
103103 ~env = Obj .magic ({
104104 "BOOL_ENV" : "t" ,
@@ -112,7 +112,7 @@ ava->test(`Successfully get Literal Bool (true) value when the env is "t"`, t =>
112112 }, ())
113113})
114114
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 => {
116116 let envSafe = EnvSafe .make (
117117 ~env = Obj .magic ({
118118 "BOOL_ENV" : "true" ,
@@ -126,7 +126,7 @@ ava->test(`Successfully get Literal Bool (true) value when the env is "true"`, t
126126 }, ())
127127})
128128
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 => {
130130 let envSafe = EnvSafe .make (
131131 ~env = Obj .magic ({
132132 "BOOL_ENV" : "false" ,
@@ -144,7 +144,7 @@ ava->test(`Successfully get Lietarl Bool (false) value when the env is "false"`,
144144 }, ())
145145})
146146
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 => {
148148 let envSafe = EnvSafe .make (
149149 ~env = Obj .magic ({
150150 "BOOL_ENV" : "f" ,
@@ -162,7 +162,7 @@ ava->test(`Successfully get Lietarl Bool (false) value when the env is "f"`, t =
162162 }, ())
163163})
164164
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 => {
166166 let envSafe = EnvSafe .make (
167167 ~env = Obj .magic ({
168168 "BOOL_ENV" : "0" ,
@@ -180,7 +180,7 @@ ava->test(`Successfully get Lietarl Bool (false) value when the env is "0"`, t =
180180 }, ())
181181})
182182
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 => {
184184 let envSafe = EnvSafe .make (
185185 ~env = Obj .magic ({
186186 "BOOL_ENV" : "2" ,
@@ -193,19 +193,18 @@ ava->test(`Fails to get Bool value when the env is "2"`, t => {
193193 () => {
194194 envSafe -> EnvSafe .close ()
195195 },
196- ~expectations = ThrowsException . make (
197- ~ name = "TypeError" ,
198- ~ message = String ( ` ========================================
196+ ~expectations = {
197+ name : "TypeError" ,
198+ message : ` ========================================
199199❌ Invalid environment variables:
200200 BOOL_ENV ("2"): Failed parsing at root. Reason: Expected Bool, received String
201- ========================================` ),
202- (),
203- ),
201+ ========================================` ,
202+ },
204203 (),
205204 )
206205})
207206
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 => {
209208 let envSafe = EnvSafe .make (
210209 ~env = Obj .magic ({
211210 "BOOL_ENV" : "1" ,
0 commit comments