fix: add expect_stdout to test output

This commit is contained in:
Fábio Santos 2018-02-27 15:24:29 +00:00
parent 0c53bc974f
commit b9dc8a1b5d

View File

@ -2033,25 +2033,40 @@ inline_true: {
issue_2842: { issue_2842: {
options = { options = {
inline: true, side_effects: true,
toplevel: true,
reduce_vars: true, reduce_vars: true,
reduce_funcs: true, reduce_funcs: true,
unused: true,
} }
input: { input: {
{ (function() {
const data = function (data) { function inlinedFunction(data) {
return data[data[0]]; return data[data[0]];
}([1, 2, 3]);
} }
function testMinify() {
if (true) {
const data = inlinedFunction([1, 2, 3]);
console.log(data);
}
}
return testMinify();
})();
} }
expect: { expect: {
{ (function () {
(function () {
if (true) {
const data = function (data) { const data = function (data) {
return data[data[0]]; return data[data[0]];
}([1, 2, 3]); }([1, 2, 3]);
console.log(data);
} }
})();
})();
} }
expect_stdout: [
"2"
]
} }
use_before_init_in_loop: { use_before_init_in_loop: {