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(``); }); });