Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
test: textstyles test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiMiguel committed Nov 22, 2023
1 parent 84249fd commit c06677b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/app_ui/lib/app_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ library app_ui;
import 'package:app_ui/src/generated/assets.gen.dart';

export 'src/theme/vertex_theme.dart';
export 'src/typography/vertex_text_styles.dart';
export 'src/widgets/widgets.dart';

/// Global reference to actual app_ui icons.
Expand Down
11 changes: 11 additions & 0 deletions packages/app_ui/test/src/theme/vertex_theme_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
group('VertexTheme themeData', () {
test('is defined for standard', () {
expect(VertexTheme.standard, isA<ThemeData>());
});
});
}
13 changes: 13 additions & 0 deletions packages/app_ui/test/src/typography/vertex_text_styles_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import 'package:app_ui/app_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
group('VertexTextStyles', () {
test('is defined for both display, body, and label', () {
expect(VertexTextStyles.display, isA<TextStyle>());
expect(VertexTextStyles.body, isA<TextStyle>());
expect(VertexTextStyles.label, isA<TextStyle>());
});
});
}

0 comments on commit c06677b

Please sign in to comment.