From 1ad3a0719f2b469d5a4e2cb2383b1214ec13391f Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Thu, 21 May 2015 18:11:17 +0100 Subject: [PATCH] Test that getSdkDir() finds the SDK without CLI args. --- test/cli_util_test.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cli_util_test.dart b/test/cli_util_test.dart index b7b7822..bf092e7 100644 --- a/test/cli_util_test.dart +++ b/test/cli_util_test.dart @@ -11,6 +11,9 @@ void defineTests() { expect(getSdkDir(['--dart-sdk', '/dart/sdk']).path, equals('/dart/sdk')); expect(getSdkDir(['--dart-sdk=/dart/sdk']).path, equals('/dart/sdk')); }); + test('finds the SDK without cli args', () { + expect(getSdkDir(), isNotNull); + }); }); }