Skip to content

Commit

Permalink
Test importing non-ASCII path
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Sep 21, 2023
1 parent 5773fab commit f2f52b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/custom_importer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ def imports(_path, parent_path)
def test_custom_importer_works
temp_file('styles2.scss', '.hi { color: $var1; }')
temp_file('fonts.scss', '.font { color: $var1; }')
temp_file('スタイル.scss', '.test { color: $var1; }')

data = <<~SCSS
@import "styles";
@import "fonts";
@import "スタイル";
SCSS

engine = Engine.new(data, {
Expand All @@ -58,6 +60,10 @@ def test_custom_importer_works
.font {
color: #000;
}
.test {
color: #000;
}
CSS
end

Expand Down

0 comments on commit f2f52b1

Please sign in to comment.