transform.test.js 372 B

123456789101112131415161718192021222324
  1. const { testTransform } = require('../test-helper');
  2. const transform = require('./transform');
  3. const input = `
  4. <template>
  5. <div />
  6. </template>
  7. <script>
  8. export default {
  9. name: 'IndentedWithTwoSpaces'
  10. }
  11. </script>
  12. `;
  13. const output = `
  14. <template>
  15. <div />
  16. </template>
  17. <script>
  18. export default {}
  19. </script>
  20. `;
  21. testTransform(transform, 'Widget.vue', input, output);