From 658b901267c0f99d280f019dac3701fd396eabd9 Mon Sep 17 00:00:00 2001 From: xavierchanth Date: Tue, 26 Sep 2023 10:50:31 -0400 Subject: [PATCH] test: update sshnp_test unit tests with update expect values --- packages/sshnoports/test/sshnp_test.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/sshnoports/test/sshnp_test.dart b/packages/sshnoports/test/sshnp_test.dart index 798fa35ae..87ebbcead 100644 --- a/packages/sshnoports/test/sshnp_test.dart +++ b/packages/sshnoports/test/sshnp_test.dart @@ -1,6 +1,9 @@ +import 'dart:io'; + import 'package:args/args.dart'; import 'package:sshnoports/common/utils.dart'; import 'package:sshnoports/sshnp/sshnp.dart'; +import 'package:path/path.dart' show dirname; import 'package:test/test.dart'; void main() { @@ -84,13 +87,12 @@ void main() { expect(p.host, 'host.subdomain.test'); expect(p.device, 'ancient_pc'); - expect(p.port, '56789'); - expect(p.localPort, '98765'); + expect(p.port, 56789); + expect(p.localPort, 98765); expect(p.username, getUserName(throwIfNull: true)); expect(p.homeDirectory, getHomeDirectory(throwIfNull: true)); expect(p.atKeysFilePath, '/tmp/temp_keys.json'); - expect(p.sendSshPublicKey, - '${getDefaultSshDirectory(p.homeDirectory)}sekrit.pub'); + expect(p.sendSshPublicKey, 'sekrit.pub'); expect(p.localSshOptions, ['--arg 2 --arg 4 foo bar -x']); expect(p.rsa, true); expect(p.verbose, true);