Skip to content

Commit

Permalink
Restructure js test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmullie committed Mar 15, 2024
1 parent 531fdee commit e4d9ebd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/JS/JSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,12 @@ function someOtherFunction() {
file_get_contents(__DIR__ . '/sample/bugs/229/minified.js'),
);

// https://github.com/matthiasmullie/minify/issues/393
$tests[] = array(
__DIR__ . '/sample/bugs/393/Decrypt.js',
file_get_contents(__DIR__ . '/sample/bugs/393/Decrypt.min.js'),
);

// https://github.com/matthiasmullie/minify/issues/231
$tests[] = array(
'var x = (2 + 2) / 2; /// =2',
Expand Down Expand Up @@ -1385,12 +1391,6 @@ function someOtherFunction() {
}
}

// some other files that are minified correctly, ensure they stay like this
// https://github.com/matthiasmullie/minify/issues/393
$source = trim(file_get_contents(__DIR__ . '/sample/source/Decrypt.js'));
$minified = trim(file_get_contents(__DIR__ . '/sample/minified2/Decrypt.min.js'));
$tests[] = array($source, $minified);

return $tests;
}
}
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e4d9ebd

Please sign in to comment.