@@ -8,7 +8,7 @@ void main() {
8
8
parser = ConfigParser ();
9
9
});
10
10
test ('should parse 3 leveled yaml config' , () async {
11
- final config = parser.parse ("""
11
+ final config = parser.parse ('''
12
12
commands:
13
13
n:
14
14
name: apps
@@ -19,7 +19,7 @@ commands:
19
19
n:
20
20
name: telegram
21
21
command: open -a telegram
22
- """ );
22
+ ''' );
23
23
expect (
24
24
config.commands.keys,
25
25
equals (
@@ -29,7 +29,7 @@ commands:
29
29
});
30
30
31
31
test ('should parse 3 leveled yaml config' , () async {
32
- final config = parser.parse ("""
32
+ final config = parser.parse ('''
33
33
commands:
34
34
n:
35
35
name: group1
@@ -43,7 +43,7 @@ commands:
43
43
t:
44
44
name: telegram
45
45
command: open -a telegram
46
- """ );
46
+ ''' );
47
47
expect (
48
48
config.commands.keys,
49
49
equals (
@@ -52,7 +52,7 @@ commands:
52
52
);
53
53
});
54
54
test ('should parse preRun hooks from yaml config' , () async {
55
- final config = parser.parse ("""
55
+ final config = parser.parse ('''
56
56
hooks:
57
57
preRun:
58
58
- command: test
@@ -65,17 +65,17 @@ commands:
65
65
name: chrome browser
66
66
command: open -a chrome
67
67
68
- """ );
68
+ ''' );
69
69
expect (
70
70
config.hooks.preRun.first.command,
71
71
equals (
72
- " test" ,
72
+ ' test' ,
73
73
),
74
74
);
75
75
});
76
76
77
77
test ('should parse postRun hooks from yaml config' , () async {
78
- final config = parser.parse ("""
78
+ final config = parser.parse ('''
79
79
hooks:
80
80
postRun:
81
81
- command: test
@@ -88,11 +88,11 @@ commands:
88
88
name: chrome browser
89
89
command: open -a chrome
90
90
91
- """ );
91
+ ''' );
92
92
expect (
93
93
config.hooks.postRun.first.command,
94
94
equals (
95
- " test" ,
95
+ ' test' ,
96
96
),
97
97
);
98
98
});
0 commit comments