mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-30 07:37:40 +00:00
22 lines
546 B
Dart
22 lines
546 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:models/models.dart';
|
|
import 'package:zapstore/widgets/comments_section.dart';
|
|
|
|
void main() {
|
|
setUpAll(() {
|
|
Model.register(
|
|
kind: 1111,
|
|
constructor: Comment.fromMap,
|
|
partialConstructor: PartialComment.fromMap,
|
|
);
|
|
});
|
|
|
|
test('tagAppComment adds the app id as i', () {
|
|
final comment = PartialComment(content: 'Works well');
|
|
|
|
tagAppComment(comment, 'com.example.app');
|
|
|
|
expect(comment.event.getFirstTagValue('i'), 'com.example.app');
|
|
});
|
|
}
|