Skip to content

Commit

Permalink
fix: push button tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GroovinChip committed Jul 5, 2023
1 parent cca6af9 commit c81c4d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/buttons/push_button_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ void main() {
expect(
description,
[
'buttonSize: small',
'controlSize: regular',
'color: null',
'disabledColor: null',
'pressedOpacity: 0.4',
'alignment: Alignment.center',
'semanticLabel: null',
'borderRadius: BorderRadius.circular(4.0)',
'disabled',
'isSecondary: null',
'secondary: null',
],
);
});
Expand Down
6 changes: 3 additions & 3 deletions test/theme/push_button_theme_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:macos_ui/macos_ui.dart';
import 'package:macos_ui/src/library.dart';

void main() {
group('PushButton theme tests', () {
Expand Down Expand Up @@ -78,8 +78,8 @@ void main() {

final theme = PushButtonTheme.of(capturedContext);
expect(theme.color, const Color(0xff007aff));
expect(theme.disabledColor, const Color(0xfff4f5f5));
expect(theme.secondaryColor, const Color(0xffdadadf));
expect(theme.disabledColor, const Color.fromRGBO(244, 245, 245, 1.0));
expect(theme.secondaryColor, MacosColors.white);
});
});
}
Expand Down

0 comments on commit c81c4d3

Please sign in to comment.