Skip to content

Commit

Permalink
Truncate the now complete FZZJ-ZSXKJW.ttf in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jul 2, 2021
1 parent ff245d5 commit 1b9d006
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 1b9d006

Please sign in to comment.