Skip to content

Commit 58ac672

Browse files
committed
fix one test
1 parent 64d9427 commit 58ac672

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

lib/dartdoc.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ class Dartdoc {
169169

170170
/// Asynchronous factory method that builds Dartdoc with a generator
171171
/// determined by the given context.
172-
static Future<Dartdoc> fromContext(DartdocGeneratorOptionContext context,
173-
PackageBuilder packageBuilder) async {
172+
static Future<Dartdoc> fromContext(
173+
DartdocGeneratorOptionContext context,
174+
PackageBuilder packageBuilder,
175+
) async {
174176
Generator generator;
175177
switch (context.format) {
176178
case 'html':

test/mustachio/aot_compiler_render_test.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,14 @@ void main() {
154154
expect(rendered, equals('''
155155
<div>
156156
<div class="partial">
157-
l1: [1, 2, 3]</div>
158-
s1: hello b1? no l1:item: 1item: 2item: 3 baz:baz is null</div>'''));
157+
l1: [1, 2, 3]
158+
</div>
159+
160+
s1: hello
161+
b1? no
162+
l1:item: 1item: 2item: 3
163+
baz:baz is null
164+
</div>'''));
159165
});
160166

161167
test('Renderer renders a non-bool variable node, escaped', () async {

0 commit comments

Comments
 (0)