0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/test/functional/fixtures/package.js
Juan Picado @jotadeveloper d4a5d813a3
refactor: race condition test
2018-06-23 20:59:21 +02:00

13 lines
336 B
JavaScript

import {PORT_SERVER_1} from "../../../src/lib/constants";
module.exports = function(name, version = '0.0.0', port = PORT_SERVER_1, domain= `http://localhost:${port}`) {
return {
name: name,
version: version,
dist: {
shasum: 'fake',
tarball: `${domain}/${encodeURIComponent(name)}/-/blahblah`,
},
};
};