-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(SNP-903): add test for testing CodeCov
- Loading branch information
1 parent
a800f60
commit b0cbdbb
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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))); | ||
}); | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.