Skip to content
Snippets Groups Projects
Commit c12630aa authored by Igor Markin's avatar Igor Markin
Browse files

Merge branch 'fix-normalisation-cases' into 'master'

Fix normalisation cases

See merge request !3
parents 021a76ca ca5bec93
Branches
Tags
1 merge request!3Fix normalisation cases
Showing
with 44 additions and 0 deletions
# 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
## Testing
HTML and text files with test cases provided in `__tests__/files`
If you are going to create a new test case, please follow the structure inside this directory.
- `yarn test`
- `yarn test:watch`
_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._
<div dir="ltr">test 1<div><b>test</b> 2</div><div>test 3</div><div><i>test 4</i></div><a href="https://gcloud-dev.vrgnservices.com/?q=CiA2gvjlHXdgHVxQA0N42bO5Ss8wTw2SgEBS9evF5tGxHBIgkgGFnmzzToMMA3P9-QMv2Xs9xtUR264mw1DyPgm4bYU=&amp;timestamp=1605796052654" id="vereignWrapperLink"><div><img src="cid:ii_khoxicut0" alt="qrcode.png" width="153" height="230"><br></div></a></div>
test 1
*test* 2
test 3
*test 4*
[image: qrcode.png]
<https://gcloud-dev.vrgnservices.com/?q=CiA2gvjlHXdgHVxQA0N42bO5Ss8wTw2SgEBS9evF5tGxHBIgkgGFnmzzToMMA3P9-QMv2Xs9xtUR264mw1DyPgm4bYU=&timestamp=1605796052654>
test 1<div><b>test</b> 2</div><div>test 3</div><div><i>test 4</i></div>
test 1test 2test 3test 4
<div dir="ltr"><a href="https://gcloud-dev.vrgnservices.com/?q=CiBOv-A-VbCT4WnNn49GvTbuctlovIHxNfwFqaN-WKQ4XxIgwmT3z8UI-KoaWYJKGv6dkZ7HYjRa8N_CwPYmN4jzj6Y=&amp;timestamp=1605796334213" id="vereignWrapperLink"><div><img src="cid:ii_khoxody31" alt="qrcode.png" width="153" height="230"><br></div></a></div>
[image: qrcode.png]
<https://gcloud-dev.vrgnservices.com/?q=CiBOv-A-VbCT4WnNn49GvTbuctlovIHxNfwFqaN-WKQ4XxIgwmT3z8UI-KoaWYJKGv6dkZ7HYjRa8N_CwPYmN4jzj6Y=&timestamp=1605796334213>
<br>
<div dir="ltr">some simple text here<a href="https://gcloud-dev.vrgnservices.com/?q=CiB8Mob3pkd4DYcjvHcQ8HR4pN5cpLlulydaUtpxgEiQexIgwoqz55hFdBuiIwwN-LVjsy0EzW5e-WC3gykoylbPFwM=&amp;timestamp=1605796554556" id="vereignWrapperLink"><div><img src="cid:ii_khoxt43w1" alt="qrcode.png" width="153" height="230"><br></div></a></div>
some simple text here
[image: qrcode.png]
<https://gcloud-dev.vrgnservices.com/?q=CiB8Mob3pkd4DYcjvHcQ8HR4pN5cpLlulydaUtpxgEiQexIgwoqz55hFdBuiIwwN-LVjsy0EzW5e-WC3gykoylbPFwM=&timestamp=1605796554556>
some simple text here
some simple text here
<div dir="ltr">some simple test with 3 html files<a href="https://gcloud-dev.vrgnservices.com/?q=CiDk0FNNmd4hQOChhzYL3cLGlMhDLF11c_vkBDc7jpGSehIgTLqKk9heb5Wat9dUMdi85mOcEPZAUxDR2qYkstCukCg=&amp;timestamp=1605797335860" id="vereignWrapperLink"><div><img src="cid:ii_khoy9uvy3" alt="qrcode.png" width="153" height="230"><br></div></a></div>
some simple test with 3 html files
[image: qrcode.png]
<https://gcloud-dev.vrgnservices.com/?q=CiDk0FNNmd4hQOChhzYL3cLGlMhDLF11c_vkBDc7jpGSehIgTLqKk9heb5Wat9dUMdi85mOcEPZAUxDR2qYkstCukCg=&timestamp=1605797335860>
some simple test with 3 html files
some simple test with 3 html files
<div dir="ltr"><a href="https://gcloud-dev.vrgnservices.com/?q=CiAkKhktExv-noQx1DGP6vC-V2myOcek-zBlnXYq02_PEhIgmWWvq5ZbH2NIIUullSu5fvZxhEDZYLrnzrfM4DPs-dw=&amp;timestamp=1605798562614" id="vereignWrapperLink"><div><img src="cid:ii_khoz05m81" alt="qrcode.png" width="153" height="230"><br></div></a></div>
[image: qrcode.png]
<https://gcloud-dev.vrgnservices.com/?q=CiAkKhktExv-noQx1DGP6vC-V2myOcek-zBlnXYq02_PEhIgmWWvq5ZbH2NIIUullSu5fvZxhEDZYLrnzrfM4DPs-dw=&timestamp=1605798562614>
<br>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment