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] 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;