From 1b6955735d406da80eea2ade9c3f8621f0d1d655 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Wed, 20 Nov 2024 18:10:12 +0800 Subject: [PATCH] Fix unit test --- test/helpers/font.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/helpers/font.js b/test/helpers/font.js index 7119e10..fc1ee40 100644 --- a/test/helpers/font.js +++ b/test/helpers/font.js @@ -4,7 +4,7 @@ require('chai').should(); const Hexo = require('hexo'); const hexo = new Hexo(); -const fontStyles = ':300,300italic,400,400italic,700,700italic'; +const fontStyles = ':ital,wght@0,300;0,400;0,700;1,300;1,400;1,700'; const fontHost = 'https://fonts.googleapis.com'; describe('font', () => { @@ -42,7 +42,7 @@ describe('font', () => { family : 'Palatino', external: false }; - nextFont().should.eql(``); + nextFont().should.eql(``); }); it('multiple', () => { @@ -55,7 +55,7 @@ describe('font', () => { family : 'Palatino', external: true }; - nextFont().should.eql(``); + nextFont().should.eql(``); }); it('duplicate', () => { @@ -68,7 +68,7 @@ describe('font', () => { family : 'Palatino', external: true }; - nextFont().should.eql(``); + nextFont().should.eql(``); }); it('fallback font', () => { @@ -81,6 +81,6 @@ describe('font', () => { family : 'Palatino', external: true }; - nextFont().should.eql(``); + nextFont().should.eql(``); }); });