test-process-release.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. 'use strict'
  2. const test = require('tap').test
  3. const processRelease = require('../lib/process-release')
  4. test('test process release - process.version = 0.8.20', function (t) {
  5. t.plan(2)
  6. var release = processRelease([], { opts: {} }, 'v0.8.20', null)
  7. t.equal(release.semver.version, '0.8.20')
  8. delete release.semver
  9. t.deepEqual(release, {
  10. version: '0.8.20',
  11. name: 'node',
  12. baseUrl: 'https://nodejs.org/dist/v0.8.20/',
  13. tarballUrl: 'https://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz',
  14. shasumsUrl: 'https://nodejs.org/dist/v0.8.20/SHASUMS256.txt',
  15. versionDir: '0.8.20',
  16. ia32: { libUrl: 'https://nodejs.org/dist/v0.8.20/node.lib', libPath: 'node.lib' },
  17. x64: { libUrl: 'https://nodejs.org/dist/v0.8.20/x64/node.lib', libPath: 'x64/node.lib' },
  18. arm64: { libUrl: 'https://nodejs.org/dist/v0.8.20/arm64/node.lib', libPath: 'arm64/node.lib' }
  19. })
  20. })
  21. test('test process release - process.version = 0.10.21', function (t) {
  22. t.plan(2)
  23. var release = processRelease([], { opts: {} }, 'v0.10.21', null)
  24. t.equal(release.semver.version, '0.10.21')
  25. delete release.semver
  26. t.deepEqual(release, {
  27. version: '0.10.21',
  28. name: 'node',
  29. baseUrl: 'https://nodejs.org/dist/v0.10.21/',
  30. tarballUrl: 'https://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz',
  31. shasumsUrl: 'https://nodejs.org/dist/v0.10.21/SHASUMS256.txt',
  32. versionDir: '0.10.21',
  33. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.21/node.lib', libPath: 'node.lib' },
  34. x64: { libUrl: 'https://nodejs.org/dist/v0.10.21/x64/node.lib', libPath: 'x64/node.lib' },
  35. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.21/arm64/node.lib', libPath: 'arm64/node.lib' }
  36. })
  37. })
  38. // prior to -headers.tar.gz
  39. test('test process release - process.version = 0.12.9', function (t) {
  40. t.plan(2)
  41. var release = processRelease([], { opts: {} }, 'v0.12.9', null)
  42. t.equal(release.semver.version, '0.12.9')
  43. delete release.semver
  44. t.deepEqual(release, {
  45. version: '0.12.9',
  46. name: 'node',
  47. baseUrl: 'https://nodejs.org/dist/v0.12.9/',
  48. tarballUrl: 'https://nodejs.org/dist/v0.12.9/node-v0.12.9.tar.gz',
  49. shasumsUrl: 'https://nodejs.org/dist/v0.12.9/SHASUMS256.txt',
  50. versionDir: '0.12.9',
  51. ia32: { libUrl: 'https://nodejs.org/dist/v0.12.9/node.lib', libPath: 'node.lib' },
  52. x64: { libUrl: 'https://nodejs.org/dist/v0.12.9/x64/node.lib', libPath: 'x64/node.lib' },
  53. arm64: { libUrl: 'https://nodejs.org/dist/v0.12.9/arm64/node.lib', libPath: 'arm64/node.lib' }
  54. })
  55. })
  56. // prior to -headers.tar.gz
  57. test('test process release - process.version = 0.10.41', function (t) {
  58. t.plan(2)
  59. var release = processRelease([], { opts: {} }, 'v0.10.41', null)
  60. t.equal(release.semver.version, '0.10.41')
  61. delete release.semver
  62. t.deepEqual(release, {
  63. version: '0.10.41',
  64. name: 'node',
  65. baseUrl: 'https://nodejs.org/dist/v0.10.41/',
  66. tarballUrl: 'https://nodejs.org/dist/v0.10.41/node-v0.10.41.tar.gz',
  67. shasumsUrl: 'https://nodejs.org/dist/v0.10.41/SHASUMS256.txt',
  68. versionDir: '0.10.41',
  69. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.41/node.lib', libPath: 'node.lib' },
  70. x64: { libUrl: 'https://nodejs.org/dist/v0.10.41/x64/node.lib', libPath: 'x64/node.lib' },
  71. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.41/arm64/node.lib', libPath: 'arm64/node.lib' }
  72. })
  73. })
  74. // has -headers.tar.gz
  75. test('test process release - process.release ~ node@0.10.42', function (t) {
  76. t.plan(2)
  77. var release = processRelease([], { opts: {} }, 'v0.10.42', null)
  78. t.equal(release.semver.version, '0.10.42')
  79. delete release.semver
  80. t.deepEqual(release, {
  81. version: '0.10.42',
  82. name: 'node',
  83. baseUrl: 'https://nodejs.org/dist/v0.10.42/',
  84. tarballUrl: 'https://nodejs.org/dist/v0.10.42/node-v0.10.42-headers.tar.gz',
  85. shasumsUrl: 'https://nodejs.org/dist/v0.10.42/SHASUMS256.txt',
  86. versionDir: '0.10.42',
  87. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.42/node.lib', libPath: 'node.lib' },
  88. x64: { libUrl: 'https://nodejs.org/dist/v0.10.42/x64/node.lib', libPath: 'x64/node.lib' },
  89. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.42/arm64/node.lib', libPath: 'arm64/node.lib' }
  90. })
  91. })
  92. // has -headers.tar.gz
  93. test('test process release - process.release ~ node@0.12.10', function (t) {
  94. t.plan(2)
  95. var release = processRelease([], { opts: {} }, 'v0.12.10', null)
  96. t.equal(release.semver.version, '0.12.10')
  97. delete release.semver
  98. t.deepEqual(release, {
  99. version: '0.12.10',
  100. name: 'node',
  101. baseUrl: 'https://nodejs.org/dist/v0.12.10/',
  102. tarballUrl: 'https://nodejs.org/dist/v0.12.10/node-v0.12.10-headers.tar.gz',
  103. shasumsUrl: 'https://nodejs.org/dist/v0.12.10/SHASUMS256.txt',
  104. versionDir: '0.12.10',
  105. ia32: { libUrl: 'https://nodejs.org/dist/v0.12.10/node.lib', libPath: 'node.lib' },
  106. x64: { libUrl: 'https://nodejs.org/dist/v0.12.10/x64/node.lib', libPath: 'x64/node.lib' },
  107. arm64: { libUrl: 'https://nodejs.org/dist/v0.12.10/arm64/node.lib', libPath: 'arm64/node.lib' }
  108. })
  109. })
  110. test('test process release - process.release ~ node@4.1.23', function (t) {
  111. t.plan(2)
  112. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  113. name: 'node',
  114. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  115. })
  116. t.equal(release.semver.version, '4.1.23')
  117. delete release.semver
  118. t.deepEqual(release, {
  119. version: '4.1.23',
  120. name: 'node',
  121. baseUrl: 'https://nodejs.org/dist/v4.1.23/',
  122. tarballUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz',
  123. shasumsUrl: 'https://nodejs.org/dist/v4.1.23/SHASUMS256.txt',
  124. versionDir: '4.1.23',
  125. ia32: { libUrl: 'https://nodejs.org/dist/v4.1.23/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  126. x64: { libUrl: 'https://nodejs.org/dist/v4.1.23/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  127. arm64: { libUrl: 'https://nodejs.org/dist/v4.1.23/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  128. })
  129. })
  130. test('test process release - process.release ~ node@4.1.23 / corp build', function (t) {
  131. t.plan(2)
  132. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  133. name: 'node',
  134. headersUrl: 'https://some.custom.location/node-v4.1.23-headers.tar.gz'
  135. })
  136. t.equal(release.semver.version, '4.1.23')
  137. delete release.semver
  138. t.deepEqual(release, {
  139. version: '4.1.23',
  140. name: 'node',
  141. baseUrl: 'https://some.custom.location/',
  142. tarballUrl: 'https://some.custom.location/node-v4.1.23-headers.tar.gz',
  143. shasumsUrl: 'https://some.custom.location/SHASUMS256.txt',
  144. versionDir: '4.1.23',
  145. ia32: { libUrl: 'https://some.custom.location/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  146. x64: { libUrl: 'https://some.custom.location/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  147. arm64: { libUrl: 'https://some.custom.location/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  148. })
  149. })
  150. test('test process release - process.release ~ node@12.8.0 Windows', function (t) {
  151. t.plan(2)
  152. var release = processRelease([], { opts: {} }, 'v12.8.0', {
  153. name: 'node',
  154. sourceUrl: 'https://nodejs.org/download/release/v12.8.0/node-v12.8.0.tar.gz',
  155. headersUrl: 'https://nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  156. libUrl: 'https://nodejs.org/download/release/v12.8.0/win-x64/node.lib'
  157. })
  158. t.equal(release.semver.version, '12.8.0')
  159. delete release.semver
  160. t.deepEqual(release, {
  161. version: '12.8.0',
  162. name: 'node',
  163. baseUrl: 'https://nodejs.org/download/release/v12.8.0/',
  164. tarballUrl: 'https://nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  165. shasumsUrl: 'https://nodejs.org/download/release/v12.8.0/SHASUMS256.txt',
  166. versionDir: '12.8.0',
  167. ia32: { libUrl: 'https://nodejs.org/download/release/v12.8.0/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  168. x64: { libUrl: 'https://nodejs.org/download/release/v12.8.0/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  169. arm64: { libUrl: 'https://nodejs.org/download/release/v12.8.0/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  170. })
  171. })
  172. test('test process release - process.release ~ node@12.8.0 Windows ARM64', function (t) {
  173. t.plan(2)
  174. var release = processRelease([], { opts: {} }, 'v12.8.0', {
  175. name: 'node',
  176. sourceUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/node-v12.8.0.tar.gz',
  177. headersUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  178. libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-arm64/node.lib'
  179. })
  180. t.equal(release.semver.version, '12.8.0')
  181. delete release.semver
  182. t.deepEqual(release, {
  183. version: '12.8.0',
  184. name: 'node',
  185. baseUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/',
  186. tarballUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  187. shasumsUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/SHASUMS256.txt',
  188. versionDir: '12.8.0',
  189. ia32: { libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  190. x64: { libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  191. arm64: { libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  192. })
  193. })
  194. test('test process release - process.release ~ node@4.1.23 --target=0.10.40', function (t) {
  195. t.plan(2)
  196. var release = processRelease([], { opts: { target: '0.10.40' } }, 'v4.1.23', {
  197. name: 'node',
  198. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  199. })
  200. t.equal(release.semver.version, '0.10.40')
  201. delete release.semver
  202. t.deepEqual(release, {
  203. version: '0.10.40',
  204. name: 'node',
  205. baseUrl: 'https://nodejs.org/dist/v0.10.40/',
  206. tarballUrl: 'https://nodejs.org/dist/v0.10.40/node-v0.10.40.tar.gz',
  207. shasumsUrl: 'https://nodejs.org/dist/v0.10.40/SHASUMS256.txt',
  208. versionDir: '0.10.40',
  209. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.40/node.lib', libPath: 'node.lib' },
  210. x64: { libUrl: 'https://nodejs.org/dist/v0.10.40/x64/node.lib', libPath: 'x64/node.lib' },
  211. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.40/arm64/node.lib', libPath: 'arm64/node.lib' }
  212. })
  213. })
  214. test('test process release - process.release ~ node@4.1.23 --dist-url=https://foo.bar/baz', function (t) {
  215. t.plan(2)
  216. var release = processRelease([], { opts: { 'dist-url': 'https://foo.bar/baz' } }, 'v4.1.23', {
  217. name: 'node',
  218. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  219. })
  220. t.equal(release.semver.version, '4.1.23')
  221. delete release.semver
  222. t.deepEqual(release, {
  223. version: '4.1.23',
  224. name: 'node',
  225. baseUrl: 'https://foo.bar/baz/v4.1.23/',
  226. tarballUrl: 'https://foo.bar/baz/v4.1.23/node-v4.1.23-headers.tar.gz',
  227. shasumsUrl: 'https://foo.bar/baz/v4.1.23/SHASUMS256.txt',
  228. versionDir: '4.1.23',
  229. ia32: { libUrl: 'https://foo.bar/baz/v4.1.23/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  230. x64: { libUrl: 'https://foo.bar/baz/v4.1.23/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  231. arm64: { libUrl: 'https://foo.bar/baz/v4.1.23/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  232. })
  233. })
  234. test('test process release - process.release ~ frankenstein@4.1.23', function (t) {
  235. t.plan(2)
  236. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  237. name: 'frankenstein',
  238. headersUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23-headers.tar.gz'
  239. })
  240. t.equal(release.semver.version, '4.1.23')
  241. delete release.semver
  242. t.deepEqual(release, {
  243. version: '4.1.23',
  244. name: 'frankenstein',
  245. baseUrl: 'https://frankensteinjs.org/dist/v4.1.23/',
  246. tarballUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23-headers.tar.gz',
  247. shasumsUrl: 'https://frankensteinjs.org/dist/v4.1.23/SHASUMS256.txt',
  248. versionDir: 'frankenstein-4.1.23',
  249. ia32: { libUrl: 'https://frankensteinjs.org/dist/v4.1.23/win-x86/frankenstein.lib', libPath: 'win-x86/frankenstein.lib' },
  250. x64: { libUrl: 'https://frankensteinjs.org/dist/v4.1.23/win-x64/frankenstein.lib', libPath: 'win-x64/frankenstein.lib' },
  251. arm64: { libUrl: 'https://frankensteinjs.org/dist/v4.1.23/win-arm64/frankenstein.lib', libPath: 'win-arm64/frankenstein.lib' }
  252. })
  253. })
  254. test('test process release - process.release ~ frankenstein@4.1.23 --dist-url=http://foo.bar/baz/', function (t) {
  255. t.plan(2)
  256. var release = processRelease([], { opts: { 'dist-url': 'http://foo.bar/baz/' } }, 'v4.1.23', {
  257. name: 'frankenstein',
  258. headersUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23.tar.gz'
  259. })
  260. t.equal(release.semver.version, '4.1.23')
  261. delete release.semver
  262. t.deepEqual(release, {
  263. version: '4.1.23',
  264. name: 'frankenstein',
  265. baseUrl: 'http://foo.bar/baz/v4.1.23/',
  266. tarballUrl: 'http://foo.bar/baz/v4.1.23/frankenstein-v4.1.23-headers.tar.gz',
  267. shasumsUrl: 'http://foo.bar/baz/v4.1.23/SHASUMS256.txt',
  268. versionDir: 'frankenstein-4.1.23',
  269. ia32: { libUrl: 'http://foo.bar/baz/v4.1.23/win-x86/frankenstein.lib', libPath: 'win-x86/frankenstein.lib' },
  270. x64: { libUrl: 'http://foo.bar/baz/v4.1.23/win-x64/frankenstein.lib', libPath: 'win-x64/frankenstein.lib' },
  271. arm64: { libUrl: 'http://foo.bar/baz/v4.1.23/win-arm64/frankenstein.lib', libPath: 'win-arm64/frankenstein.lib' }
  272. })
  273. })
  274. test('test process release - process.release ~ node@4.0.0-rc.4', function (t) {
  275. t.plan(2)
  276. var release = processRelease([], { opts: {} }, 'v4.0.0-rc.4', {
  277. name: 'node',
  278. headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
  279. })
  280. t.equal(release.semver.version, '4.0.0-rc.4')
  281. delete release.semver
  282. t.deepEqual(release, {
  283. version: '4.0.0-rc.4',
  284. name: 'node',
  285. baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
  286. tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
  287. shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
  288. versionDir: '4.0.0-rc.4',
  289. ia32: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  290. x64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  291. arm64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  292. })
  293. })
  294. test('test process release - process.release ~ node@4.0.0-rc.4 passed as argv[0]', function (t) {
  295. t.plan(2)
  296. // note the missing 'v' on the arg, it should normalise when checking
  297. // whether we're on the default or not
  298. var release = processRelease(['4.0.0-rc.4'], { opts: {} }, 'v4.0.0-rc.4', {
  299. name: 'node',
  300. headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
  301. })
  302. t.equal(release.semver.version, '4.0.0-rc.4')
  303. delete release.semver
  304. t.deepEqual(release, {
  305. version: '4.0.0-rc.4',
  306. name: 'node',
  307. baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
  308. tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
  309. shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
  310. versionDir: '4.0.0-rc.4',
  311. ia32: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  312. x64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  313. arm64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  314. })
  315. })
  316. test('test process release - process.release ~ node@4.0.0-rc.4 - bogus string passed as argv[0]', function (t) {
  317. t.plan(2)
  318. // additional arguments can be passed in on the commandline that should be ignored if they
  319. // are not specifying a valid version @ position 0
  320. var release = processRelease(['this is no version!'], { opts: {} }, 'v4.0.0-rc.4', {
  321. name: 'node',
  322. headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
  323. })
  324. t.equal(release.semver.version, '4.0.0-rc.4')
  325. delete release.semver
  326. t.deepEqual(release, {
  327. version: '4.0.0-rc.4',
  328. name: 'node',
  329. baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
  330. tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
  331. shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
  332. versionDir: '4.0.0-rc.4',
  333. ia32: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  334. x64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  335. arm64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  336. })
  337. })
  338. test('test process release - NODEJS_ORG_MIRROR', function (t) {
  339. t.plan(2)
  340. process.env.NODEJS_ORG_MIRROR = 'http://foo.bar'
  341. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  342. name: 'node',
  343. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  344. })
  345. t.equal(release.semver.version, '4.1.23')
  346. delete release.semver
  347. t.deepEqual(release, {
  348. version: '4.1.23',
  349. name: 'node',
  350. baseUrl: 'http://foo.bar/v4.1.23/',
  351. tarballUrl: 'http://foo.bar/v4.1.23/node-v4.1.23-headers.tar.gz',
  352. shasumsUrl: 'http://foo.bar/v4.1.23/SHASUMS256.txt',
  353. versionDir: '4.1.23',
  354. ia32: { libUrl: 'http://foo.bar/v4.1.23/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  355. x64: { libUrl: 'http://foo.bar/v4.1.23/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  356. arm64: { libUrl: 'http://foo.bar/v4.1.23/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  357. })
  358. delete process.env.NODEJS_ORG_MIRROR
  359. })