transform.test.js 392 B

123456789101112131415161718192021222324252627282930
  1. const { testTransform } = require('../test-helper');
  2. const transform = require('./transform');
  3. const input = `
  4. <script>
  5. export default {
  6. name: 'IndentedStyle'
  7. };
  8. </script>
  9. <style>
  10. .widget {
  11. color: red;
  12. }
  13. </style>
  14. `;
  15. const output = `
  16. <script>
  17. export default {};
  18. </script>
  19. <style>
  20. .widget {
  21. color: red;
  22. }
  23. </style>
  24. `;
  25. testTransform(transform, 'Widget.vue', input, output);