| 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 => { |