mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-02 17:49:38 +01:00
cca9464b09
Closes #25 Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net> Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
34 lines
926 B
Dart
34 lines
926 B
Dart
// Copyright 2018 Google Inc. Use of this source code is governed by an
|
|
// MIT-style license that can be found in the LICENSE file or at
|
|
// https://opensource.org/licenses/MIT.
|
|
|
|
@TestOn('vm')
|
|
|
|
import 'package:test/test.dart';
|
|
import 'package:test_descriptor/test_descriptor.dart' as d;
|
|
|
|
import '../dart_test.dart';
|
|
import '../shared/errors.dart';
|
|
|
|
void main() {
|
|
setUpAll(ensureSnapshotUpToDate);
|
|
sharedTests(runSass);
|
|
|
|
test("for package urls", () async {
|
|
await d.file("test.scss", "@import 'package:nope/test';").create();
|
|
|
|
var sass = await runSass(["--no-unicode", "test.scss"]);
|
|
expect(
|
|
sass.stderr,
|
|
emitsInOrder([
|
|
"Error: Can't find stylesheet to import.",
|
|
" ,",
|
|
"1 | @import 'package:nope/test';",
|
|
" | ^^^^^^^^^^^^^^^^^^^",
|
|
" '",
|
|
" test.scss 1:9 root stylesheet"
|
|
]));
|
|
await sass.shouldExit(65);
|
|
});
|
|
}
|