Fix lint issues in providers.base.js

This commit is contained in:
David Humphrey 2018-07-26 17:50:32 -04:00
parent a8c3fa85db
commit 3e1c3deb51
1 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,5 @@
/* eslint no-console: 0 */
var Buffer = require('../../../src').Buffer; var Buffer = require('../../../src').Buffer;
var util = require('../../lib/test-utils.js'); var util = require('../../lib/test-utils.js');
var expect = require('chai').expect; var expect = require('chai').expect;
@ -43,7 +45,7 @@ module.exports = function createProviderTestsFor(providerName, testProvider) {
}); });
it('should allow putObject() and getObject()', function(done) { it('should allow putObject() and getObject()', function(done) {
provider.open(function(error, firstAccess) { provider.open(function(error) {
if(error) throw error; if(error) throw error;
var context = provider.getReadWriteContext(); var context = provider.getReadWriteContext();
@ -71,7 +73,7 @@ module.exports = function createProviderTestsFor(providerName, testProvider) {
}); });
it('should allow putBuffer() and getBuffer()', function(done) { it('should allow putBuffer() and getBuffer()', function(done) {
provider.open(function(error, firstAccess) { provider.open(function(error) {
if(error) throw error; if(error) throw error;
var context = provider.getReadWriteContext(); var context = provider.getReadWriteContext();
@ -91,7 +93,7 @@ module.exports = function createProviderTestsFor(providerName, testProvider) {
}); });
it('should allow zero-length Buffers with putBuffer() and getBuffer()', function(done) { it('should allow zero-length Buffers with putBuffer() and getBuffer()', function(done) {
provider.open(function(error, firstAccess) { provider.open(function(error) {
if(error) throw error; if(error) throw error;
var context = provider.getReadWriteContext(); var context = provider.getReadWriteContext();
@ -112,7 +114,7 @@ module.exports = function createProviderTestsFor(providerName, testProvider) {
it('should allow delete()', function(done) { it('should allow delete()', function(done) {
var provider = _provider.provider; var provider = _provider.provider;
provider.open(function(error, firstAccess) { provider.open(function(error) {
if(error) throw error; if(error) throw error;
var context = provider.getReadWriteContext(); var context = provider.getReadWriteContext();
@ -133,7 +135,7 @@ module.exports = function createProviderTestsFor(providerName, testProvider) {
}); });
it('should allow clear()', function(done) { it('should allow clear()', function(done) {
provider.open(function(error, firstAccess) { provider.open(function(error) {
if(error) throw error; if(error) throw error;
var context = provider.getReadWriteContext(); var context = provider.getReadWriteContext();
@ -143,7 +145,7 @@ module.exports = function createProviderTestsFor(providerName, testProvider) {
context.putObject('key2', 'value2', function(error) { context.putObject('key2', 'value2', function(error) {
if(error) throw error; if(error) throw error;
context.clear(function(err) { context.clear(function(error) {
if(error) throw error; if(error) throw error;
context.getObject('key1', function(error, result) { context.getObject('key1', function(error, result) {