ast.test.js 463 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. const defineTest = require("../utils/defineTest");
  3. const propTypes = require("../utils/prop-types");
  4. defineTest(
  5. __dirname,
  6. propTypes[0],
  7. "fixture-1",
  8. {
  9. objects: "are",
  10. super: [
  11. "yeah",
  12. {
  13. test: new RegExp(/\.(js|vue)$/),
  14. loader: "'eslint-loader'",
  15. enforce: "'pre'",
  16. include: ["customObj", "'Stringy'"],
  17. options: {
  18. formatter: "'someOption'"
  19. }
  20. }
  21. ],
  22. nice: "':)'",
  23. man: "() => duper"
  24. },
  25. "init"
  26. );