Skip to content

Commit

Permalink
lint: apply standard 14 style
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Nov 19, 2021
1 parent b7febac commit 226ff3a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ jobs:
shell: bash
run: |
# eslint for linting
# - remove on Node.js < 8
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 8 ]]; then
# - remove on Node.js < 10
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
grep -E '^eslint(-|$)' | \
sort -r | \
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"send": "0.17.1"
},
"devDependencies": {
"eslint": "6.8.0",
"eslint-config-standard": "13.0.1",
"eslint-plugin-import": "2.25.2",
"eslint": "7.32.0",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-markdown": "2.2.1",
"eslint-plugin-node": "9.2.0",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.1.1",
"eslint-plugin-standard": "4.0.0",
"istanbul": "0.4.5",
"mocha": "7.2.0",
Expand Down
24 changes: 15 additions & 9 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,11 @@ describe('serveStatic()', function () {
})

it('should get called when sending file', function (done) {
var server = createServer(fixtures, { setHeaders: function (res) {
res.setHeader('x-custom', 'set')
} })
var server = createServer(fixtures, {
setHeaders: function (res) {
res.setHeader('x-custom', 'set')
}
})

request(server)
.get('/nums.txt')
Expand All @@ -552,9 +554,11 @@ describe('serveStatic()', function () {
})

it('should not get called on 404', function (done) {
var server = createServer(fixtures, { setHeaders: function (res) {
res.setHeader('x-custom', 'set')
} })
var server = createServer(fixtures, {
setHeaders: function (res) {
res.setHeader('x-custom', 'set')
}
})

request(server)
.get('/bogus')
Expand All @@ -563,9 +567,11 @@ describe('serveStatic()', function () {
})

it('should not get called on redirect', function (done) {
var server = createServer(fixtures, { setHeaders: function (res) {
res.setHeader('x-custom', 'set')
} })
var server = createServer(fixtures, {
setHeaders: function (res) {
res.setHeader('x-custom', 'set')
}
})

request(server)
.get('/users')
Expand Down

0 comments on commit 226ff3a

Please sign in to comment.