Run Dart Sass in checked mode in tests (#304)

Also fix a checked mode error.
This commit is contained in:
Natalie Weizenbaum 2018-04-23 21:20:38 -07:00 committed by GitHub
parent 2c967f0070
commit dc8d8a6166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -184,14 +184,14 @@ Future<String> _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,

View File

@ -26,5 +26,7 @@ void main() {
}
Future<TestProcess> _runSass(Iterable<String> 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");