Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 1, 2023
1 parent e5eae88 commit 01fd577
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@
"unified": "^10.0.0"
},
"devDependencies": {
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"prettier": "^2.0.0",
"@types/tape": "^5.0.0",
"c8": "^8.0.0",
"prettier": "^3.0.0",
"rehype": "^12.0.0",
"rehype-document": "^6.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.52.0"
"typescript": "^5.0.0",
"xo": "^0.56.0"
},
"scripts": {
"build": "rimraf \"lib/**/*.d.ts\" \"{index,test}.d.ts\" && tsc && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js",
"test": "npm run build && npm run format && npm run test-coverage"
Expand Down
6 changes: 4 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {rehype} from 'rehype'
import rehypeDocument from 'rehype-document'
import rehypeMeta from './index.js'

const currentYear = new Date().getFullYear()

test('rehypeMeta', (t) => {
t.test('basics', (st) => {
st.equal(
Expand Down Expand Up @@ -165,7 +167,7 @@ test('rehypeMeta', (t) => {
[
'<head>',
'<meta name="author" content="Jane X. Doe">',
'<meta name="copyright" content="© 2022 Jane X. Doe">',
'<meta name="copyright" content="© ' + currentYear + ' Jane X. Doe">',
'</head>',
''
].join('\n'),
Expand Down Expand Up @@ -196,7 +198,7 @@ test('rehypeMeta', (t) => {
[
'<head>',
'<meta name="author" content="Jane X. Doe">',
'<meta name="copyright" content="© 2022 Jane X. Doe">',
'<meta name="copyright" content="© ' + currentYear + ' Jane X. Doe">',
'</head>',
''
].join('\n'),
Expand Down

0 comments on commit 01fd577

Please sign in to comment.