Skip to content

Commit

Permalink
Merge pull request #18 from chromeos/Security-Polixy-Fix
Browse files Browse the repository at this point in the history
binary compliance fix
  • Loading branch information
joycetoh8 authored Dec 16, 2022
2 parents a088906 + 3a584b6 commit 67a874d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Binary file removed src/test/data/classes.dex
Binary file not shown.
8 changes: 0 additions & 8 deletions src/test/digester_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ describe('Digester Suite', () => {
expect(output).toBe('qvn/SI4HZ9peodVhGOb2WhbFYzsM78H6CJvTqxgQYT0=');
});

it('resources from a file is converted correctly', async () => {
const buf = readFileSync('src/test/data/classes.dex');
const bufString = buf.toString('binary');

const output = await SHA256ForString(bufString);
expect(output).toBe('HSpR2UidLSnTHSPHnvpBYjVCeJIzlBuPmFgUqV6/d6Q=');
});

it('dex from a file is converted correctly', async () => {
const buf = readFileSync('src/test/data/resources.pb');
const os = buf.toString('binary');
Expand Down

0 comments on commit 67a874d

Please sign in to comment.