Skip to content

Commit

Permalink
Add validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonia Seddiki committed Feb 4, 2022
1 parent bc0a0a1 commit 410b990
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file added fixtures/test_v0.eot
Binary file not shown.
Binary file added fixtures/test_v0.ttf
Binary file not shown.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ var assert = require('assert');
var fs = require('fs');
var ttf2eot = require('.');

it('bin compare - OS/2 version 0', function () {
var src = new Uint8Array(fs.readFileSync('./fixtures/test_v0.ttf'));
var dst = new Uint8Array(fs.readFileSync('./fixtures/test_v0.eot'));

assert.deepEqual(ttf2eot(src), dst);
});

it('bin compare', function () {
var src = new Uint8Array(fs.readFileSync('./fixtures/test.ttf'));
Expand Down

0 comments on commit 410b990

Please sign in to comment.