Skip to content

Commit

Permalink
test: use assets from new twitter api
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed May 27, 2023
1 parent a57407c commit 09e207b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const alts: { [key: string]: string } = {

const expected = {
svg: '<svg class="twemoji" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="1em" height="1em"><path fill="#A0041E" d="M1 17l8-7 16 1 1 16-7 8s.001-5.999-6-12-12-6-12-6z"/><path fill="#FFAC33" d="M.973 35s-.036-7.979 2.985-11S15 21.187 15 21.187 14.999 29 11.999 32c-3 3-11.026 3-11.026 3z"/><circle fill="#FFCC4D" cx="8.999" cy="27" r="4"/><path fill="#55ACEE" d="M35.999 0s-10 0-22 10c-6 5-6 14-4 16s11 2 16-4c10-12 10-22 10-22z"/><path d="M26.999 5c-1.623 0-3.013.971-3.641 2.36.502-.227 1.055-.36 1.641-.36 2.209 0 4 1.791 4 4 0 .586-.133 1.139-.359 1.64 1.389-.627 2.359-2.017 2.359-3.64 0-2.209-1.791-4-4-4z"/><path fill="#A0041E" d="M8 28s0-4 1-5 13.001-10.999 14-10-9.001 13-10.001 14S8 28 8 28z"/></svg>',
img: (alt: string) => `<img class="twemoji" src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f680.png" alt="${alt}" style="width:1em;height:1em;">`,
img: (alt: string) => `<img class="twemoji" src="https://cdn.jsdelivr.net/jdecked/twemoji@latest/assets/72x72/1f680.png" alt="${alt}" style="width:1em;height:1em;">`,
error: '<span>1234</span>'
};

Expand Down

0 comments on commit 09e207b

Please sign in to comment.