mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 12:44:42 +01:00
Run Dart Sass in checked mode in tests (#304)
Also fix a checked mode error.
This commit is contained in:
parent
2c967f0070
commit
dc8d8a6166
@ -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,
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user