Update test expectations for source_span output (#87)
Version `1.5.0` of `source_span` changed the output format. Update the
tests which hardcoded the expected output to the new format.
diff --git a/test/parser_feature_test.dart b/test/parser_feature_test.dart
index c112717..2591a2d 100644
--- a/test/parser_feature_test.dart
+++ b/test/parser_feature_test.dart
@@ -57,8 +57,10 @@
expect(error.toString(), '''
On line 4, column 3 of ParseError: Unexpected DOCTYPE. Ignored.
- <!DOCTYPE html>
- ^^^^^^^^^^^^^^^''');
+ ╷
+4 │ <!DOCTYPE html>
+ │ ^^^^^^^^^^^^^^^
+ ╵''');
});
test('parse error spans - minimal', () {
@@ -253,8 +255,10 @@
parser.errors[0].toString(),
'ParserError on line 1, column 4: Unexpected non-space characters. '
'Expected DOCTYPE.\n'
- 'foo\n'
- ' ^');
+ ' ╷\n'
+ '1 │ foo\n'
+ ' │ ^\n'
+ ' ╵');
});
test('Element.text', () {