blob: 245488c89a8fe13709aa1c699deda9c804494629 [file]
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import babelMinify from "babel-minify";
const payloads = [
{
name: "speedometer-es2015-test-2.0.js",
options: {},
},
];
export function runTest(fileData) {
const testData = payloads.map(({ name, options }) => ({
payload: fileData[name],
options,
}));
return testData.map(({ payload, options }) => babelMinify(payload, options));
}