support node v10 - test on all LTS version

This commit is contained in:
Dane Springmeyer
2018-06-26 07:49:29 -07:00
parent 0a215bd6a5
commit a71a19ec40
4 changed files with 9 additions and 8 deletions

View File

@@ -62,7 +62,7 @@ tape('getGeocoderData (no table)', function(assert) {
tape('putGeocoderData', function(assert) {
to.startWriting(function(err) {
assert.ifError(err);
to.putGeocoderData('term', 0, new Buffer('asdf'), function(err) {
to.putGeocoderData('term', 0, Buffer.from('asdf'), function(err) {
assert.ifError(err);
to.stopWriting(function(err) {
assert.ifError(err);
@@ -223,4 +223,3 @@ tape('cleanup', function(assert) {
try { fs.rmdirSync(tmp); } catch(err) { throw err; }
assert.end();
});