Skip to content

Commit

Permalink
more es6 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Dec 27, 2023
1 parent 0785735 commit 36a27b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"main": "index.js",
"engines": {
"node": ">=4"
"node": ">=8"
},
"dependencies": {},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

var assert = require('assert')
var util = require('util')
const assert = require('assert')
const util = require('util')

var re = require('../index')
const re = require('../index')

var syslogLines = [
const syslogLines = [
{
name: 'spamd',
line: 'Jul 5 06:52:01 prd-mx1 spamd[11526]: spamd: identified spam (9.3/5.0) for nagios:1209 in 0.8 seconds, 5 bytes.',
Expand Down Expand Up @@ -662,11 +662,11 @@ var postfixLines = [

describe('postfix lines', function () {
describe('asObjectType', function () {
postfixLines.forEach(function (test) {
for (const test of postfixLines) {
it(test.type + (test.desc ? ' ' + test.desc : ''), function () {
var res = re.asObjectType(test.type, test.line)
const res = re.asObjectType(test.type, test.line)
assert.deepEqual(res, test.obj) // , util.inspect(res, {depth: null}));
})
})
}
})
})
4 changes: 2 additions & 2 deletions test/logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

var assert = require('assert')
const assert = require('assert')

var logger = require('../lib/logger')
const logger = require('../lib/logger')

describe('logger', function () {

Expand Down

0 comments on commit 36a27b5

Please sign in to comment.