From 5d8d2503948ab63ff98f5bbd2b60f668b49823b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Nov 2024 01:17:48 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump chai from 4.5.0 to 5.1.2 Bumps [chai](https://github.com/chaijs/chai) from 4.5.0 to 5.1.2. - [Release notes](https://github.com/chaijs/chai/releases) - [Changelog](https://github.com/chaijs/chai/blob/main/History.md) - [Commits](https://github.com/chaijs/chai/compare/v4.5.0...v5.1.2) --- updated-dependencies: - dependency-name: chai dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e165796..bddc0ea 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "c8": "^8.0.0", - "chai": "^4.3.7", + "chai": "^5.1.2", "eslint": "^8.57.0", "eslint-config-hexo": "^5.0.0", "hexo": "^7.1.1", From 095d07bbf94da1fe6398dc93a6151fd4c3ca521a Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:05:00 +0800 Subject: [PATCH 2/2] migrate to chai@5 --- .mocharc.yml | 2 ++ test/index.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.mocharc.yml b/.mocharc.yml index 9f445f4..80ee71d 100644 --- a/.mocharc.yml +++ b/.mocharc.yml @@ -1 +1,3 @@ color: true +require: + - "chai/register-should.js" diff --git a/test/index.js b/test/index.js index f51cd06..8874278 100644 --- a/test/index.js +++ b/test/index.js @@ -1,6 +1,5 @@ 'use strict'; -require('chai').should(); const { encodeURL, escapeHTML, url_for } = require('hexo-util'); const Hexo = require('hexo'); const { join } = require('path').posix;