Initial take on the commands + renderers + cli.

This commit is contained in:
André Cruz
2013-05-23 19:55:59 +01:00
parent 9f6bf62efc
commit cfb3d14028
21 changed files with 442 additions and 68 deletions

View File

@@ -17,7 +17,7 @@ describe('resolverFactory', function () {
var tempSource;
var options = {};
options.registry = new RegistryClient(mout.object.fillIn({
options.registryClient = new RegistryClient(mout.object.fillIn({
cache: defaultConfig._registry
}, defaultConfig));

View File

@@ -735,7 +735,7 @@ describe('GitResolver', function () {
.done();
});
it('should save the release (under _release)', function (next) {
it('should save the release in the package meta', function (next) {
var resolver = new GitResolver('foo');
var metaFile = path.join(tempDir, '.bower.json');
@@ -774,7 +774,7 @@ describe('GitResolver', function () {
})
.then(function (contents) {
var json = JSON.parse(contents.toString());
expect(json._release).to.equal('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
expect(json._release).to.equal('aaaaaaaaaa');
})
// Test with type 'commit'
.then(function () {
@@ -786,7 +786,7 @@ describe('GitResolver', function () {
})
.then(function (contents) {
var json = JSON.parse(contents.toString());
expect(json._release).to.equal('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
expect(json._release).to.equal('aaaaaaaaaa');
next();
})
.done();

View File

@@ -447,7 +447,9 @@ describe('UrlResolver', function () {
.done();
});
it('should store cache headers in the package meta', function (next) {
it.skip('should save the release if there\'s a E-Tag');
it('should save cache headers', function (next) {
var resolver;
nock('http://bower.io')