Skip to content

Commit

Permalink
test: fix failing unit test and bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdLab committed Sep 20, 2023
1 parent cd04d7c commit dd5e90e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
16 changes: 8 additions & 8 deletions packages/rapid_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ dependencies:
args: ^2.4.2
cli_launcher: ^0.3.1
cli_util: ^0.4.0
code_builder: ^4.5.0
code_builder: ^4.6.0
collection: ^1.18.0
dart_style: ^2.3.2
file: ^6.1.4
dart_style: ^2.3.3
file: ^7.0.0
io: ^1.0.4
mason: ^0.1.0-dev.50
meta: ^1.9.1
mason: 0.1.0-dev.50 # fixed because logger tests depend on /src of this version
meta: ^1.10.0
path: ^1.8.3
platform: ^3.1.1
process: ^4.2.4
platform: ^3.1.2
process: ^5.0.0
propertylistserialization: ^1.3.0
pub_semver: ^2.1.4
pub_updater: ^0.3.1
pub_updater: ^0.4.0
pubspec: ^2.3.0
tabular: ^0.6.3+1
xml: ^6.4.2
Expand Down
58 changes: 29 additions & 29 deletions packages/rapid_cli/test/src/logging_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:async';
// ignore: depend_on_referenced_packages
import 'package:mason_logger/src/io.dart' show ControlCharacter, KeyStroke;
// ignore: depend_on_referenced_packages
import 'package:mason_logger/src/stdin_overrides.dart';
import 'package:mason_logger/src/terminal_overrides.dart';
import 'package:mocktail/mocktail.dart';
import 'package:rapid_cli/src/io/io.dart';
import 'package:rapid_cli/src/logging.dart';
Expand Down Expand Up @@ -686,7 +686,7 @@ void main() {
'enter/return selects the nothing '
'when defaultValues is not specified.', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlJ)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -716,7 +716,7 @@ void main() {

test('enter/return selects the default values when specified.', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlJ)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -758,7 +758,7 @@ void main() {
KeyStroke.char(' '),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -850,7 +850,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowDown),
KeyStroke.control(ControlCharacter.ctrlM),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -892,7 +892,7 @@ void main() {
KeyStroke.char('j'),
KeyStroke.control(ControlCharacter.ctrlM),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -934,7 +934,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowUp),
KeyStroke.control(ControlCharacter.ctrlM),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -976,7 +976,7 @@ void main() {
KeyStroke.char('k'),
KeyStroke.control(ControlCharacter.ctrlM),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1020,7 +1020,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowDown),
KeyStroke.control(ControlCharacter.ctrlM),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1077,7 +1077,7 @@ void main() {

test('converts choices to a preferred display', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlM)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1112,7 +1112,7 @@ void main() {

test('converts results to a preferred display', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlM)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1144,7 +1144,7 @@ void main() {
'enter selects the initial value '
'when defaultValue is not specified.', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlM)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1176,7 +1176,7 @@ void main() {

test('enter selects the default value when specified.', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlM)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1209,7 +1209,7 @@ void main() {

test('space selects the default value when specified.', () {
final keyStrokes = [KeyStroke.char(' ')];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1246,7 +1246,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowDown),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1291,7 +1291,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowUp),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1337,7 +1337,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowUp),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1382,7 +1382,7 @@ void main() {
KeyStroke.control(ControlCharacter.arrowDown),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1428,7 +1428,7 @@ void main() {
KeyStroke.char('j'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1473,7 +1473,7 @@ void main() {
KeyStroke.char('k'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1516,7 +1516,7 @@ void main() {

test('converts choices to a preferred display', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlJ)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1556,7 +1556,7 @@ void main() {
group('promptAny', () {
test('returns empty list', () {
final keyStrokes = [KeyStroke.control(ControlCharacter.ctrlJ)];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand All @@ -1580,7 +1580,7 @@ void main() {
KeyStroke.char('t'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1608,7 +1608,7 @@ void main() {
KeyStroke.char('s'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1637,7 +1637,7 @@ void main() {
KeyStroke.char(','),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1670,7 +1670,7 @@ void main() {
KeyStroke.char(','),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1698,7 +1698,7 @@ void main() {
KeyStroke.char('s'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1726,7 +1726,7 @@ void main() {
KeyStroke.char('s'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down Expand Up @@ -1758,7 +1758,7 @@ void main() {
KeyStroke.char('s'),
KeyStroke.control(ControlCharacter.ctrlJ),
];
StdinOverrides.runZoned(
TerminalOverrides.runZoned(
() => IOOverrides.runZoned(
() {
const message = 'test message';
Expand Down

0 comments on commit dd5e90e

Please sign in to comment.