Skip to content

Commit f164c82

Browse files
committed
Update models_test.dart
1 parent 045a6b6 commit f164c82

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/annotation/models_test.dart

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ void main() {
2424
expect(o, isNot(equals(o2)));
2525
expect(o.hashCode, equals(o.hashCode));
2626
expect(o.hashCode, isNot(equals(o2.hashCode)));
27+
28+
expect(o.getSourceId(5123), contains(5123.toString()));
29+
expect(o.getLayerId(1532), contains(1532.toString()));
30+
expect(o.getLayout(), isA<Map<String, Object>>());
31+
expect(o.getPaint(), isA<Map<String, Object>>());
2732
});
2833
test('MarkerAnnotationLayer', () {
2934
final o = MarkerAnnotationLayer(
@@ -48,6 +53,11 @@ void main() {
4853
expect(o, isNot(equals(o2)));
4954
expect(o.hashCode, equals(o.hashCode));
5055
expect(o.hashCode, isNot(equals(o2.hashCode)));
56+
57+
expect(o.getSourceId(5123), contains(5123.toString()));
58+
expect(o.getLayerId(1532), contains(1532.toString()));
59+
expect(o.getLayout(), isA<Map<String, Object>>());
60+
expect(o.getPaint(), isA<Map<String, Object>>());
5161
});
5262
test('PolygonAnnotationLayer', () {
5363
final o = PolygonAnnotationLayer(
@@ -74,6 +84,11 @@ void main() {
7484
expect(o, isNot(equals(o2)));
7585
expect(o.hashCode, equals(o.hashCode));
7686
expect(o.hashCode, isNot(equals(o2.hashCode)));
87+
88+
expect(o.getSourceId(5123), contains(5123.toString()));
89+
expect(o.getLayerId(1532), contains(1532.toString()));
90+
expect(o.getLayout(), isA<Map<String, Object>>());
91+
expect(o.getPaint(), isA<Map<String, Object>>());
7792
});
7893
test('PolylineAnnotationLayer', () {
7994
final o = PolylineAnnotationLayer(
@@ -103,6 +118,11 @@ void main() {
103118
expect(o, isNot(equals(o2)));
104119
expect(o.hashCode, equals(o.hashCode));
105120
expect(o.hashCode, isNot(equals(o2.hashCode)));
121+
122+
expect(o.getSourceId(5123), contains(5123.toString()));
123+
expect(o.getLayerId(1532), contains(1532.toString()));
124+
expect(o.getLayout(), isA<Map<String, Object>>());
125+
expect(o.getPaint(), isA<Map<String, Object>>());
106126
});
107127
});
108128
}

0 commit comments

Comments
 (0)