forked from eatvio/eatvio_app
28 lines
722 B
Dart
28 lines
722 B
Dart
import 'package:eatvio_app/features/create_recipe/models/step.dart';
|
||
import 'package:flutter_test/flutter_test.dart';
|
||
|
||
void main() {
|
||
group('Step', () {
|
||
test('создает Step с правильными значениями', () {
|
||
const step = Step(
|
||
image: 'https://example.com/image.jpg',
|
||
description: 'Step description',
|
||
);
|
||
|
||
expect(step.image, 'https://example.com/image.jpg');
|
||
expect(step.description, 'Step description');
|
||
});
|
||
|
||
test('создает Step с null значениями', () {
|
||
const step = Step(
|
||
image: null,
|
||
description: null,
|
||
);
|
||
|
||
expect(step.image, isNull);
|
||
expect(step.description, isNull);
|
||
});
|
||
});
|
||
}
|
||
|