Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from getBoolean/dependabot/pub/xml-6.0.1
Browse files Browse the repository at this point in the history
Bump xml from 5.3.1 to 6.0.1
  • Loading branch information
getBoolean committed May 2, 2022
2 parents 19c0a2b + 6ed9d8c commit 1dc3bda
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
version: "1.16.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -210,7 +210,7 @@ packages:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "4.4.0"
version: "5.0.0"
pool:
dependency: transitive
description:
Expand Down Expand Up @@ -364,7 +364,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "5.3.1"
version: "6.0.1"
yaml:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
archive: ^3.1.11
equatable: ^2.0.3
meta: ^1.7.0
xml: ^5.3.1
xml: ">=5.3.1 <7.0.0"
path: ^1.8.1

dev_dependencies:
Expand Down
10 changes: 6 additions & 4 deletions test/src/utils/xml_utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import 'package:xml/xml.dart';
void main() {
group('parseToXmlDocument', () {
test(
'on input without content element, expect exception thrown',
'on input without valid element, expect exception thrown',
() async {
final input = '''
<472-3949wqedk/qa;q]P>
''';
expect(
() => XmlUtils.parseToXmlDocument(input),
Expand All @@ -18,7 +19,7 @@ void main() {
);

test(
'on input without content element, expect exception thrown',
'on input with valid element, expect XmlDocument returned',
() async {
final input = '''
<valid></valid>
Expand All @@ -33,9 +34,10 @@ void main() {

group('tryParseToXmlDocument', () {
test(
'on input without content element, expect exception thrown',
'on input without valid element, expect null returned',
() async {
final input = '''
<472-3949wqedk/qa;q]P>
''';
expect(
XmlUtils.tryParseToXmlDocument(input),
Expand All @@ -45,7 +47,7 @@ void main() {
);

test(
'on input without content element, expect exception thrown',
'on input with valid element, expect XmlDocument returned',
() async {
final input = '''
<valid></valid>
Expand Down

0 comments on commit 1dc3bda

Please sign in to comment.