jsfmt.spec.js.snap 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`comments.js 1`] = `
  3. var inspect = 4 === util.inspect.length
  4. ? // node <= 0.8.x
  5. (function(v, colors) {
  6. return util.inspect(v, void 0, void 0, colors);
  7. })
  8. : // node > 0.8.x
  9. (function(v, colors) {
  10. return util.inspect(v, { colors: colors });
  11. });
  12. var inspect = 4 === util.inspect.length
  13. ? // node <= 0.8.x
  14. (function(v, colors) {
  15. return util.inspect(v, void 0, void 0, colors);
  16. })
  17. : // node > 0.8.x
  18. (function(v, colors) {
  19. return util.inspect(v, { colors: colors });
  20. });
  21. const extractTextPluginOptions = shouldUseRelativeAssetPaths
  22. // Making sure that the publicPath goes back to to build folder.
  23. ? { publicPath: Array(cssFilename.split('/').length).join('../') } :
  24. {};
  25. const extractTextPluginOptions = shouldUseRelativeAssetPaths
  26. ? // Making sure that the publicPath goes back to to build folder.
  27. { publicPath: Array(cssFilename.split("/").length).join("../") }
  28. : {};
  29. const extractTextPluginOptions = shouldUseRelativeAssetPaths // Making sure that the publicPath goes back to to build folder.
  30. ? { publicPath: Array(cssFilename.split("/").length).join("../") }
  31. : {};
  32. const { configureStore } = process.env.NODE_ENV === "production"
  33. ? require("./configureProdStore") // a
  34. : require("./configureDevStore"); // b
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. var inspect =
  37. 4 === util.inspect.length
  38. ? // node <= 0.8.x
  39. function(v, colors) {
  40. return util.inspect(v, void 0, void 0, colors);
  41. }
  42. : // node > 0.8.x
  43. function(v, colors) {
  44. return util.inspect(v, { colors: colors });
  45. };
  46. var inspect =
  47. 4 === util.inspect.length
  48. ? // node <= 0.8.x
  49. function(v, colors) {
  50. return util.inspect(v, void 0, void 0, colors);
  51. }
  52. : // node > 0.8.x
  53. function(v, colors) {
  54. return util.inspect(v, { colors: colors });
  55. };
  56. const extractTextPluginOptions = shouldUseRelativeAssetPaths
  57. ? // Making sure that the publicPath goes back to to build folder.
  58. { publicPath: Array(cssFilename.split("/").length).join("../") }
  59. : {};
  60. const extractTextPluginOptions = shouldUseRelativeAssetPaths
  61. ? // Making sure that the publicPath goes back to to build folder.
  62. { publicPath: Array(cssFilename.split("/").length).join("../") }
  63. : {};
  64. const extractTextPluginOptions = shouldUseRelativeAssetPaths // Making sure that the publicPath goes back to to build folder.
  65. ? { publicPath: Array(cssFilename.split("/").length).join("../") }
  66. : {};
  67. const { configureStore } =
  68. process.env.NODE_ENV === "production"
  69. ? require("./configureProdStore") // a
  70. : require("./configureDevStore"); // b
  71. `;
  72. exports[`new-expression.js 1`] = `
  73. const testConsole = new TestConsole(
  74. config.useStderr ? process.stderr : process.stdout
  75. );
  76. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. const testConsole = new TestConsole(
  78. config.useStderr ? process.stderr : process.stdout
  79. );
  80. `;
  81. exports[`no-confusing-arrow.js 1`] = `
  82. // no-confusing-arrow
  83. var x = a => 1 ? 2 : 3;
  84. var x = a <= 1 ? 2 : 3;
  85. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  86. // no-confusing-arrow
  87. var x = a => (1 ? 2 : 3);
  88. var x = a <= 1 ? 2 : 3;
  89. `;