Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
test(manifest): clarify source of things
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 17, 2017
1 parent a82c193 commit e671641
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/registry.manifest.cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@ var CACHE = testDir(__filename)
var Manifest = require('../lib/finalize-manifest').Manifest
var manifest = require('../manifest')

// This is what the server sends
var BASE = {
name: 'foo',
version: '1.2.3',
_hasShrinkwrap: false,
_shasum: 'deadbeef',
_resolved: 'https://foo.bar/x.tgz',
dist: {
shasum: 'deadbeef',
tarball: 'https://foo.bar/x.tgz'
}
}
// This is what's returned by finalize-manifest
var PKG = new Manifest({
name: 'foo',
version: '1.2.3',
_hasShrinkwrap: false,
_shasum: BASE.dist.shasum,
_resolved: BASE.dist.tarball
})
var META = {
'dist-tags': {
latest: '1.2.3'
Expand All @@ -29,7 +36,6 @@ var META = {
'1.2.3': BASE
}
}
var PKG = new Manifest(BASE)

npmlog.level = process.env.LOGLEVEL || 'silent'
var OPTS = {
Expand Down

0 comments on commit e671641

Please sign in to comment.