exec.js 228 B

123456789
  1. var actual = transform(
  2. 'var x = <sometag __source="custom" />;',
  3. Object.assign({}, opts, { filename: '/fake/path/mock.js' })
  4. ).code;
  5. var expected = 'var x = <sometag __source="custom" />;';
  6. expect(actual).toBe(expected);