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 495133edae
refactor: readme test endpoit
add scenario when readme is not present
2018-06-23 20:59:25 +02:00

14 lines
368 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,
readme: "this is a readme",
dist: {
shasum: 'fake',
tarball: `${domain}/${encodeURIComponent(name)}/-/blahblah`,
},
};
};