Mime Normalizer
Library implements normalisation of HTML and plain parts of a MIME message.
Normalisation strategies documentation: https://code.vereign.com/light/documentation/-/blob/master/Validation.md#normalization-strategies
Prerequisites
Initialize project
yarn install
Testing
yarn test
yarn test:watch
eml
files with test cases provided in __tests__/files
-
sent.eml
corresponds to the MIME string extract by integrator application -
received.eml
- corresponds to the raw MIME message extracted manually from email client
If you are going to create a new test case, please follow the structure inside this directory.
Important note: MIME normaliser does not cover all provided test cases.
Some of them explicitly ignored to indicate which tests has to be fixed. Please refer to failingCases
arrays inside the test files.
Tests are using both JSDOM and custom Vereign DOM parser. Vereign DOM parser has been developed to support MIME normalisation in Google Add-on and is a must for testing.
Whenever you develop a new normalisation logic, ensure that Vereign DOM parser and Google Add-on support functions you apply.