From 1b9d00675ad2d3001b99512e7193fd012284363e Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Fri, 2 Jul 2021 22:22:07 +0200 Subject: [PATCH] Truncate the now complete FZZJ-ZSXKJW.ttf in the test --- test/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/index.js b/test/index.js index 1a8a726..eab4ab9 100644 --- a/test/index.js +++ b/test/index.js @@ -202,9 +202,11 @@ describe('subset-font', function () { describe('with a truncated font', function () { before(async function () { - this.truncatedTtfFont = await readFile( - pathModule.resolve(__dirname, '..', 'testdata', 'FZZJ-ZSXKJW.ttf') - ); + this.truncatedTtfFont = ( + await readFile( + pathModule.resolve(__dirname, '..', 'testdata', 'FZZJ-ZSXKJW.ttf') + ) + ).slice(0, 131072); }); it('should error out', async function () {