Skip to content

Commit

Permalink
chore(SNP-903): add test for testing CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
martynov-alex committed Feb 21, 2024
1 parent a800f60 commit b0cbdbb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
22 changes: 22 additions & 0 deletions test/domain/device_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:surf_widget_test_composer/domain/device.dart';

void main() {
group('TestDevice', () {
test('should create TestDevice instance', () {
final device = TestDevice(
size: const Size(1080, 1920),
name: 'Test Device',
devicePixelRatio: 2.0,
safeArea: const EdgeInsets.all(10.0),
);

expect(device, isNotNull);
expect(device.name, equals('Test Device'));
expect(device.size, equals(const Size(1080, 1920)));
expect(device.devicePixelRatio, equals(2.0));
expect(device.safeArea, equals(const EdgeInsets.all(10.0)));
});
});
}
8 changes: 0 additions & 8 deletions test/unit_test.dart

This file was deleted.

0 comments on commit b0cbdbb

Please sign in to comment.