mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-11 13:33:33 +08:00
21 lines
437 B
Dart
21 lines
437 B
Dart
import 'package:test/test.dart';
|
|
|
|
import 'package:gitjournal/core/processors/image_extractor.dart';
|
|
|
|
void main() {
|
|
test('Should parse simple tags', () {
|
|
var body = """#hello Hi
|
|

|
|

|
|
""";
|
|
|
|
var p = ImageExtractor();
|
|
var images = p.extract(body);
|
|
|
|
expect(images, {
|
|
NoteImage(alt: 'alt', url: '../final.img'),
|
|
NoteImage(alt: 'alt2', url: '../final2.img'),
|
|
});
|
|
});
|
|
}
|