Skip to content

Commit

Permalink
fix: bits
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 13, 2022
1 parent b00b935 commit ffe3f06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/swc_css_compat/src/feature.rs
Expand Up @@ -4,6 +4,6 @@ bitflags! {
pub struct Features: u64 {
const NESTING = 1 << 0;
const CUSTOM_MEDIA = 1 << 1;
const MEDIA_QUERY_RANGES = 1 << 1;
const MEDIA_QUERY_RANGES = 1 << 2;
}
}
4 changes: 2 additions & 2 deletions crates/swc_css_compat/tests/fixture.rs
Expand Up @@ -81,7 +81,7 @@ fn test_nesting_without_env(input: PathBuf) {
}

#[testing::fixture("tests/media_query_ranges/**/*.css", exclude("expect.css"))]
fn test_custom_media_query(input: PathBuf) {
fn test_media_query_ranges(input: PathBuf) {
let output = input.with_extension("expect.css");

testing::run_test(false, |cm, _| {
Expand All @@ -90,7 +90,7 @@ fn test_custom_media_query(input: PathBuf) {
let mut ss = parse_stylesheet(&fm);

ss.visit_mut_with(&mut Compiler::new(Config {
process: Features::CUSTOM_MEDIA,
process: Features::MEDIA_QUERY_RANGES,
}));

let s = print_stylesheet(&ss);
Expand Down

0 comments on commit ffe3f06

Please sign in to comment.