diff --git a/lib/src/executable.dart b/lib/src/executable.dart index 4824fc16..f60f0d35 100644 --- a/lib/src/executable.dart +++ b/lib/src/executable.dart @@ -184,14 +184,14 @@ Future _compileStdin( var importer = new FilesystemImporter('.'); if (asynchronous) { return await compileStringAsync(text, - indented: indented, + indented: indented ?? false, logger: logger, style: style, importer: importer, loadPaths: loadPaths); } else { return compileString(text, - indented: indented, + indented: indented ?? false, logger: logger, style: style, importer: importer, diff --git a/test/dart_cli_test.dart b/test/dart_cli_test.dart index 51ba30e9..d8c18e16 100644 --- a/test/dart_cli_test.dart +++ b/test/dart_cli_test.dart @@ -26,5 +26,7 @@ void main() { } Future _runSass(Iterable arguments) => TestProcess.start( - Platform.executable, [p.absolute("bin/sass.dart")]..addAll(arguments), - workingDirectory: d.sandbox, description: "sass"); + Platform.executable, + ["--checked", p.absolute("bin/sass.dart")]..addAll(arguments), + workingDirectory: d.sandbox, + description: "sass");