Skip to content

Commit

Permalink
Merge pull request #501 from atsign-foundation/test/update-unit-tests
Browse files Browse the repository at this point in the history
test: update sshnp_test unit tests with update expect values
  • Loading branch information
XavierChanth authored Sep 26, 2023
2 parents c56186a + 658b901 commit bddf283
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/sshnoports/test/sshnp_test.dart
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bddf283

Please sign in to comment.