MCPcopy Create free account
hub / github.com/nodejs/node / defaultNpmProfile

Function defaultNpmProfile

deps/npm/test/lib/commands/profile.js:284–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 })
283
284 const defaultNpmProfile = t => ({
285 async get () {
286 return userProfile
287 },
288 async set (newUser) {
289 t.match(
290 newUser,
291 {
292 fullname: 'Lorem Ipsum',
293 },
294 'should set new value to key'
295 )
296 return {
297 ...userProfile,
298 ...newUser,
299 }
300 },
301 })
302
303 t.test('writable key', async t => {
304 t.test('default output', async t => {

Callers 1

profile.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected