Skip to content

Commit

Permalink
Update dependencies to enable Greenkeeper 🌴 (googleapis#13)
Browse files Browse the repository at this point in the history
* chore(package): update dependencies

* Fixed sinon syntax change
  • Loading branch information
greenkeeper[bot] authored and stephenplusplus committed Dec 4, 2017
1 parent cc3e097 commit fc90b05
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 36 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"system-test": "repo-tools test run --cmd mocha -- system-test/*.js --no-timeouts"
},
"dependencies": {
"@google-cloud/common": "^0.13.0",
"@google-cloud/common": "^0.15.1",
"@google-cloud/common-grpc": "^0.4.0",
"arrify": "^1.0.0",
"concat-stream": "^1.5.0",
"create-error-class": "^3.0.2",
"dot-prop": "^3.0.0",
"dot-prop": "^4.2.0",
"extend": "^3.0.0",
"is": "^3.0.1",
"lodash.flatten": "^4.2.0",
Expand All @@ -71,20 +71,20 @@
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^2.1.0",
"async": "^2.5.0",
"codecov": "^2.3.1",
"codecov": "^3.0.0",
"eslint": "^4.9.0",
"eslint-config-prettier": "^2.6.0",
"eslint-plugin-node": "^5.2.0",
"eslint-plugin-prettier": "^2.3.1",
"ink-docstrap": "^1.3.0",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.5.5",
"mocha": "^3.5.3",
"mocha": "^4.0.1",
"nyc": "^11.2.1",
"power-assert": "^1.4.4",
"prettier": "^1.7.4",
"proxyquire": "^1.7.10",
"sinon": "^1.17.4",
"sinon": "^4.1.2",
"uuid": "^3.0.1"
}
}
38 changes: 14 additions & 24 deletions test/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ describe('Bigtable/Filter', function() {
name: 'fake-column',
};

var spy = sinon.stub(Filter, 'convertToRegExpString', function(value) {
return value;
});
var spy = sinon.stub(Filter, 'convertToRegExpString').returnsArg(0);

filter.set = function(filterName, value) {
assert.strictEqual(filterName, 'columnQualifierRegexFilter');
Expand Down Expand Up @@ -298,9 +296,7 @@ describe('Bigtable/Filter', function() {
fail: {c: 'c'},
};

var spy = sinon.stub(Filter, 'parse', function(value) {
return value;
});
var spy = sinon.stub(Filter, 'parse').returnsArg(0);

filter.set = function(filterName, value) {
assert.strictEqual(filterName, 'condition');
Expand All @@ -324,9 +320,7 @@ describe('Bigtable/Filter', function() {
it('should create a family name regex filter', function(done) {
var familyName = 'fake-family';

var spy = sinon.stub(Filter, 'convertToRegExpString', function(value) {
return value;
});
var spy = sinon.stub(Filter, 'convertToRegExpString').returnsArg(0);

filter.set = function(filterName, value) {
assert.strictEqual(filterName, 'familyNameRegexFilter');
Expand All @@ -343,9 +337,7 @@ describe('Bigtable/Filter', function() {
it('should create an interleave filter', function(done) {
var fakeFilters = [{}, {}, {}];

var spy = sinon.stub(Filter, 'parse', function(value) {
return value;
});
var spy = sinon.stub(Filter, 'parse').returnsArg(0);

filter.set = function(filterName, value) {
assert.strictEqual(filterName, 'interleave');
Expand Down Expand Up @@ -383,9 +375,9 @@ describe('Bigtable/Filter', function() {
};
var convertedKey = 'abcd';

var spy = sinon.stub(Filter, 'convertToRegExpString', function() {
return convertedKey;
});
var spy = sinon
.stub(Filter, 'convertToRegExpString')
.returns(convertedKey);

filter.set = function(filterName, value) {
assert.strictEqual(filterName, 'rowKeyRegexFilter');
Expand Down Expand Up @@ -531,9 +523,9 @@ describe('Bigtable/Filter', function() {
var fakeRegExValue = 'abcd';
var fakeConvertedValue = 'dcba';

var regSpy = sinon.stub(Filter, 'convertToRegExpString', function() {
return fakeRegExValue;
});
var regSpy = sinon
.stub(Filter, 'convertToRegExpString')
.returns(fakeRegExValue);

var bytesSpy = (FakeMutation.convertToBytes = sinon.spy(function() {
return fakeConvertedValue;
Expand All @@ -556,9 +548,9 @@ describe('Bigtable/Filter', function() {
var fakeRegExValue = 'abcd';
var fakeConvertedValue = 'dcba';

var regSpy = sinon.stub(Filter, 'convertToRegExpString', function() {
return fakeRegExValue;
});
var regSpy = sinon
.stub(Filter, 'convertToRegExpString')
.returns(fakeRegExValue);

var bytesSpy = (FakeMutation.convertToBytes = sinon.spy(function() {
return fakeConvertedValue;
Expand All @@ -585,9 +577,7 @@ describe('Bigtable/Filter', function() {
end: 'b',
};

var spy = sinon.stub(Filter, 'createRange', function() {
return fakeRange;
});
var spy = sinon.stub(Filter, 'createRange').returns(fakeRange);

filter.set = function(filterName, val) {
assert.strictEqual(filterName, 'valueRangeFilter');
Expand Down
4 changes: 1 addition & 3 deletions test/mutation.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ describe('Bigtable/Mutation', function() {
qualifier: null,
};

sinon.stub(Mutation, 'parseColumnName', function() {
return fakeColumnName;
});
sinon.stub(Mutation, 'parseColumnName').returns(fakeColumnName);

var mutation = Mutation.encodeDelete(['follows']);

Expand Down
6 changes: 2 additions & 4 deletions test/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ describe('Bigtable/Table', function() {
it('should inherit from GrpcServiceObject', function() {
var FAKE_TABLE_NAME = 'fake-table-name';

sinon.stub(Table, 'formatName_', function() {
return FAKE_TABLE_NAME;
});
sinon.stub(Table, 'formatName_').returns(FAKE_TABLE_NAME);

var table = new Table(INSTANCE, TABLE_ID);
var config = table.calledWith_[0];
Expand Down Expand Up @@ -570,7 +568,7 @@ describe('Bigtable/Table', function() {
var formattedRows = [{key: 'c', data: {}}, {key: 'd', data: {}}];

beforeEach(function() {
sinon.stub(table, 'row', function() {
sinon.stub(table, 'row').callsFake(function() {
return {};
});

Expand Down

0 comments on commit fc90b05

Please sign in to comment.