mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
11 lines
271 B
JavaScript
11 lines
271 B
JavaScript
var actualP = transformAsync(
|
|
'var x = <sometag __source="custom" />;',
|
|
Object.assign({}, opts, { filename: '/fake/path/mock.js' })
|
|
)
|
|
|
|
var expected = 'var x = <sometag __source="custom" />;';
|
|
|
|
return actualP.then(actual => {
|
|
expect(actual.code).toBe(expected);
|
|
});
|