mirror of
https://github.com/bower/bower.git
synced 2026-01-23 05:07:55 -05:00
Initial take on the commands + renderers + cli.
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user