Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #203 from Level/greenkeeper/standard-11.0.0
Browse files Browse the repository at this point in the history
Update standard to the latest version 🚀
  • Loading branch information
ralphtheninja authored Feb 19, 2018
2 parents 6491f76 + a3b44e5 commit c17886b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions abstract/close-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ module.exports.close = function (leveldown, test, testCommon) {
db.open(function (err) {
t.error(err)
t.throws(
db.close.bind(db)
db.close.bind(db)
, { name: 'Error', message: 'close() requires a callback argument' }
, 'no-arg close() throws'
)
t.throws(
db.close.bind(db, 'foo')
db.close.bind(db, 'foo')
, { name: 'Error', message: 'close() requires a callback argument' }
, 'non-callback close() throws'
)
Expand Down
6 changes: 3 additions & 3 deletions abstract/del-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports.setUp = function (_leveldown, test, _testCommon) {
module.exports.args = function (test) {
test('test argument-less del() throws', function (t) {
t.throws(
db.del.bind(db)
db.del.bind(db)
, { name: 'Error', message: 'del() requires a callback argument' }
, 'no-arg del() throws'
)
Expand All @@ -25,7 +25,7 @@ module.exports.args = function (test) {

test('test callback-less, 1-arg, del() throws', function (t) {
t.throws(
db.del.bind(db, 'foo')
db.del.bind(db, 'foo')
, { name: 'Error', message: 'del() requires a callback argument' }
, 'callback-less, 1-arg del() throws'
)
Expand All @@ -34,7 +34,7 @@ module.exports.args = function (test) {

test('test callback-less, 3-arg, del() throws', function (t) {
t.throws(
db.del.bind(db, 'foo', {})
db.del.bind(db, 'foo', {})
, { name: 'Error', message: 'del() requires a callback argument' }
, 'callback-less, 2-arg del() throws'
)
Expand Down
6 changes: 3 additions & 3 deletions abstract/get-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports.setUp = function (_leveldown, test, _testCommon) {
module.exports.args = function (test) {
test('test argument-less get() throws', function (t) {
t.throws(
db.get.bind(db)
db.get.bind(db)
, { name: 'Error', message: 'get() requires a callback argument' }
, 'no-arg get() throws'
)
Expand All @@ -26,7 +26,7 @@ module.exports.args = function (test) {

test('test callback-less, 1-arg, get() throws', function (t) {
t.throws(
db.get.bind(db, 'foo')
db.get.bind(db, 'foo')
, { name: 'Error', message: 'get() requires a callback argument' }
, 'callback-less, 1-arg get() throws'
)
Expand All @@ -35,7 +35,7 @@ module.exports.args = function (test) {

test('test callback-less, 3-arg, get() throws', function (t) {
t.throws(
db.get.bind(db, 'foo', {})
db.get.bind(db, 'foo', {})
, { name: 'Error', message: 'get() requires a callback argument' }
, 'callback-less, 2-arg get() throws'
)
Expand Down
6 changes: 3 additions & 3 deletions abstract/iterator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports.args = function (test) {
test('test argument-less iterator#next() throws', function (t) {
var iterator = db.iterator()
t.throws(
iterator.next.bind(iterator)
iterator.next.bind(iterator)
, { name: 'Error', message: 'next() requires a callback argument' }
, 'no-arg iterator#next() throws'
)
Expand All @@ -23,7 +23,7 @@ module.exports.args = function (test) {
var iterator = db.iterator()
iterator.next(function () {
t.throws(
iterator.end.bind(iterator)
iterator.end.bind(iterator)
, { name: 'Error', message: 'end() requires a callback argument' }
, 'no-arg iterator#end() throws'
)
Expand All @@ -34,7 +34,7 @@ module.exports.args = function (test) {
test('test argument-less iterator#end() throws', function (t) {
var iterator = db.iterator()
t.throws(
iterator.end.bind(iterator)
iterator.end.bind(iterator)
, { name: 'Error', message: 'end() requires a callback argument' }
, 'no-arg iterator#end() throws'
)
Expand Down
8 changes: 4 additions & 4 deletions abstract/leveldown-test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module.exports.args = function (leveldown, test) {
test('test database creation no-arg throws', function (t) {
t.throws(
leveldown
leveldown
, { name: 'Error', message: 'constructor requires at least a location argument' }
, 'no-arg leveldown() throws'
)
t.end()
})
test('test database creation non-string location throws', function (t) {
t.throws(
function () {
leveldown({})
}
function () {
leveldown({})
}
, { name: 'Error', message: 'constructor requires a location string argument' }
, 'non-string location leveldown() throws'
)
Expand Down
4 changes: 2 additions & 2 deletions abstract/open-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports.args = function (leveldown, test, testCommon) {
test('test database open no-arg throws', function (t) {
var db = leveldown(testCommon.location())
t.throws(
db.open.bind(db)
db.open.bind(db)
, { name: 'Error', message: 'open() requires a callback argument' }
, 'no-arg open() throws'
)
Expand All @@ -16,7 +16,7 @@ module.exports.args = function (leveldown, test, testCommon) {
test('test callback-less, 1-arg, open() throws', function (t) {
var db = leveldown(testCommon.location())
t.throws(
db.open.bind(db, {})
db.open.bind(db, {})
, { name: 'Error', message: 'open() requires a callback argument' }
, 'callback-less, 1-arg open() throws'
)
Expand Down
4 changes: 2 additions & 2 deletions abstract/put-get-del-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ module.exports.nonErrorKeys = function (test) {

// standard String key
makePutGetDelSuccessfulTest(
test
test
, 'long String key'
, 'some long string that I\'m using as a key for this unit test, cross your fingers dude, we\'re going in!'
, 'foo'
Expand Down Expand Up @@ -148,7 +148,7 @@ module.exports.nonErrorValues = function (test) {

// standard String value
makePutGetDelSuccessfulTest(
test
test
, 'long String value'
, 'foo'
, 'some long string that I\'m using as a key for this unit test, cross your fingers dude, we\'re going in!'
Expand Down
8 changes: 4 additions & 4 deletions abstract/put-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports.setUp = function (_leveldown, test, _testCommon) {
module.exports.args = function (test) {
test('test argument-less put() throws', function (t) {
t.throws(
db.put.bind(db)
db.put.bind(db)
, { name: 'Error', message: 'put() requires a callback argument' }
, 'no-arg put() throws'
)
Expand All @@ -25,7 +25,7 @@ module.exports.args = function (test) {

test('test callback-less, 1-arg, put() throws', function (t) {
t.throws(
db.put.bind(db, 'foo')
db.put.bind(db, 'foo')
, { name: 'Error', message: 'put() requires a callback argument' }
, 'callback-less, 1-arg put() throws'
)
Expand All @@ -34,7 +34,7 @@ module.exports.args = function (test) {

test('test callback-less, 2-arg, put() throws', function (t) {
t.throws(
db.put.bind(db, 'foo', 'bar')
db.put.bind(db, 'foo', 'bar')
, { name: 'Error', message: 'put() requires a callback argument' }
, 'callback-less, 2-arg put() throws'
)
Expand All @@ -43,7 +43,7 @@ module.exports.args = function (test) {

test('test callback-less, 3-arg, put() throws', function (t) {
t.throws(
db.put.bind(db, 'foo', 'bar', {})
db.put.bind(db, 'foo', 'bar', {})
, { name: 'Error', message: 'put() requires a callback argument' }
, 'callback-less, 3-arg put() throws'
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/node": "^9.3.0",
"rimraf": "^2.6.1",
"sinon": "^4.0.0",
"standard": "^10.0.3",
"standard": "^11.0.0",
"tape": "^4.7.0",
"ts-node": "^4.1.0",
"typescript": "^2.6.2"
Expand Down

0 comments on commit c17886b

Please sign in to comment.