Fix analyser hints
diff --git a/test/mustache_test.dart b/test/mustache_test.dart
index f569bb1..caa2208 100644
--- a/test/mustache_test.dart
+++ b/test/mustache_test.dart
@@ -356,6 +356,7 @@
test('Odd variable name', () {
var output = parse(r'{{#section}}_{{var$%$^%}}_{{/section}}', lenient: true)
.renderString({'section': {r'var$%$^%': 'bob'}});
+ expect(output, equals('_bob_'));
});
test('Null variable', () {
@@ -582,7 +583,7 @@
test('LambdaContext.lookup closed', () {
var t = new Template('{{ foo }}');
var lc2;
- var s = t.renderString({'foo': (lc) => lc2 = lc, 'bar': 'jim'});
+ t.renderString({'foo': (lc) => lc2 = lc, 'bar': 'jim'});
expect(() => lc2.lookup('foo'), throwsException);
});
diff --git a/test/parser_test.dart b/test/parser_test.dart
index 8431946..8554348 100644
--- a/test/parser_test.dart
+++ b/test/parser_test.dart
@@ -252,7 +252,7 @@
var source = "{{{ #foo }}} {{{ /foo }}}";
var parser = new Parser(source, 'foo', '{{ }}', lenient: false);
try {
- var nodes = parser.parse();
+ parser.parse();
fail('Should fail.');
} catch (e) {
expect(e is TemplateException, isTrue);