|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Test append-patches: 00: basic patch file 1`] = ` |
| 4 | +"SNAPSHOT: basic patch file |
| 5 | +left-pad+1.3.0.patch |
| 6 | +END SNAPSHOT" |
| 7 | +`; |
| 8 | + |
| 9 | +exports[`Test append-patches: 01: after appending a patch file 1`] = ` |
| 10 | +"SNAPSHOT: after appending a patch file |
| 11 | +left-pad+1.3.0+001+initial.patch |
| 12 | +left-pad+1.3.0+002+MillionDollars.patch |
| 13 | +END SNAPSHOT" |
| 14 | +`; |
| 15 | + |
| 16 | +exports[`Test append-patches: 02: the second patch file should go from patch-package to a million dollars 1`] = ` |
| 17 | +"SNAPSHOT: the second patch file should go from patch-package to a million dollars |
| 18 | +diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js |
| 19 | +index a409e14..73d2a7c 100644 |
| 20 | +--- a/node_modules/left-pad/index.js |
| 21 | ++++ b/node_modules/left-pad/index.js |
| 22 | +@@ -3,7 +3,7 @@ |
| 23 | + * and/or modify it under the terms of the Do What The Fuck You Want |
| 24 | + * To Public License, Version 2, as published by Sam Hocevar. See |
| 25 | + * http://www.wtfpl.net/ for more details. */ |
| 26 | +-'use patch-package'; |
| 27 | ++'use a million dollars'; |
| 28 | + module.exports = leftPad; |
| 29 | + |
| 30 | + var cache = [ |
| 31 | +END SNAPSHOT" |
| 32 | +`; |
| 33 | + |
| 34 | +exports[`Test append-patches: 03: creating a first patch file with --append 1`] = ` |
| 35 | +"SNAPSHOT: creating a first patch file with --append |
| 36 | +left-pad+1.3.0+001+FirstPatch.patch |
| 37 | +END SNAPSHOT" |
| 38 | +`; |
| 39 | + |
| 40 | +exports[`Test append-patches: 04: the squashed patch file should go from use strict to a million dollars 1`] = ` |
| 41 | +"SNAPSHOT: the squashed patch file should go from use strict to a million dollars |
| 42 | +diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js |
| 43 | +index e90aec3..73d2a7c 100644 |
| 44 | +--- a/node_modules/left-pad/index.js |
| 45 | ++++ b/node_modules/left-pad/index.js |
| 46 | +@@ -3,7 +3,7 @@ |
| 47 | + * and/or modify it under the terms of the Do What The Fuck You Want |
| 48 | + * To Public License, Version 2, as published by Sam Hocevar. See |
| 49 | + * http://www.wtfpl.net/ for more details. */ |
| 50 | +-'use strict'; |
| 51 | ++'use a million dollars'; |
| 52 | + module.exports = leftPad; |
| 53 | + |
| 54 | + var cache = [ |
| 55 | +END SNAPSHOT" |
| 56 | +`; |
| 57 | + |
| 58 | +exports[`Test append-patches: 05: after appending a billion dollars 1`] = ` |
| 59 | +"SNAPSHOT: after appending a billion dollars |
| 60 | +left-pad+1.3.0+001+FirstPatch.patch |
| 61 | +left-pad+1.3.0+002+BillionDollars.patch |
| 62 | +END SNAPSHOT" |
| 63 | +`; |
| 64 | + |
| 65 | +exports[`Test append-patches: 06: after updating the appended patch file to a TRILLION dollars 1`] = ` |
| 66 | +"SNAPSHOT: after updating the appended patch file to a TRILLION dollars |
| 67 | +diff --git a/node_modules/left-pad/index.js b/node_modules/left-pad/index.js |
| 68 | +index 73d2a7c..f53ea10 100644 |
| 69 | +--- a/node_modules/left-pad/index.js |
| 70 | ++++ b/node_modules/left-pad/index.js |
| 71 | +@@ -3,7 +3,7 @@ |
| 72 | + * and/or modify it under the terms of the Do What The Fuck You Want |
| 73 | + * To Public License, Version 2, as published by Sam Hocevar. See |
| 74 | + * http://www.wtfpl.net/ for more details. */ |
| 75 | +-'use a million dollars'; |
| 76 | ++'use a trillion dollars'; |
| 77 | + module.exports = leftPad; |
| 78 | + |
| 79 | + var cache = [ |
| 80 | +END SNAPSHOT" |
| 81 | +`; |
| 82 | + |
| 83 | +exports[`Test append-patches: 07: patch-package fails when a patch in the sequence is invalid 1`] = ` |
| 84 | +"SNAPSHOT: patch-package fails when a patch in the sequence is invalid |
| 85 | +Failed to apply patch left-pad+1.3.0+001+FirstPatch.patch to left-pad |
| 86 | +END SNAPSHOT" |
| 87 | +`; |
0 commit comments