Skip to content

Commit

Permalink
Added test for lowercasing hash value.
Browse files Browse the repository at this point in the history
  • Loading branch information
efreeti committed Nov 23, 2020
1 parent 3c62c54 commit b2d9ffc
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,25 @@ describe('mapping', () => {
})
);
});

it('should lowercase hash condition value', function () {
testMapping(
{
name: 'MD5 trusted app',
description: 'MD5 Trusted App',
os: 'linux',
entries: [
createConditionEntry(ConditionEntryField.HASH, '1234234659Af249ddf3e40864E9FB241'),
],
},
createExceptionListItemOptions({
name: 'MD5 trusted app',
description: 'MD5 Trusted App',
osTypes: ['linux'],
entries: [createEntryMatch('process.hash.md5', '1234234659af249ddf3e40864e9fb241')],
})
);
});
});

describe('exceptionListItemToTrustedApp', () => {
Expand Down

0 comments on commit b2d9ffc

Please sign in to comment.