Skip to content

Commit

Permalink
Fix AMD path for punycode in test
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhammerl committed Jan 15, 2016
1 parent 985f836 commit 5ab00b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emailjs-mime-builder",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "https://github.com/emailjs/emailjs-mime-builder",
"description": "emailjs-mime-builder is a low level rfc2822 message composer. Define your own mime tree, no magic included.",
"author": "Andris Reinman <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions test/emailjs-mime-builder-unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,13 @@
expect(/^Subject: =\?UTF-8\?Q\?j=C3=B5geval\?= istus =\?UTF-8\?Q\?k=C3=A4gu\?= metsas$/m.test(msg)).to.be.true;
});

it.skip('should have unicode subject with strange characters', function() {
it('should have unicode subject with strange characters', function() {
var msg = new Mimebuilder('text/plain').
setHeader({
subject: 'ˆ¸ÁÌÓıÏˇÁÛ^¸\\ÁıˆÌÁÛØ^\\˜Û˝™ˇıÓ¸^\\˜fi^\\·\\˜Ø^£˜#fi^\\£fi^\\£fi^\\'
}).build();

expect(msg.match(/\bSubject: [^\r]*\r\n( [^\r]*\r\n)*/)[0]).to.equal('Subject: =?UTF-8?Q?=CB=86=C2=B8=C3=81=C3=8C=C3=93=C4=B1?=\r\n =?UTF-8?Q?=C3=8F=CB=87=C3=81=C3=9B^=C2=B8\\=C3=81?=\r\n =?UTF-8?Q?=C4=B1=CB=86=C3=8C=C3=81=C3=9B=C3=98^\\?=\r\n =?UTF-8?Q?=CB=9C=C3=9B=CB=9D=E2=84=A2=CB=87=C4=B1?=\r\n =?UTF-8?Q?=C3=93=C2=B8^\\=CB=9C=EF=AC=81^\\=C2=B7\\?=\r\n =?UTF-8?Q?=CB=9C=C3=98^=C2=A3=CB=9C#=EF=AC=81^\\?=\r\n =?UTF-8?Q?=C2=A3=EF=AC=81^\\=C2=A3=EF=AC=81^\\?=\r\n');
expect(msg.match(/\bSubject: [^\r]*\r\n( [^\r]*\r\n)*/)[0]).to.equal('Subject: =?UTF-8?Q?=CB=86=C2=B8=C3=81=C3=8C=C3=93=C4=B1?=\r\n =?UTF-8?Q?=C3=8F=CB=87=C3=81=C3=9B=5E=C2=B8=5C?=\r\n =?UTF-8?Q?=C3=81=C4=B1=CB=86=C3=8C=C3=81=C3=9B?=\r\n =?UTF-8?Q?=C3=98=5E=5C=CB=9C=C3=9B=CB=9D=E2=84=A2?=\r\n =?UTF-8?Q?=CB=87=C4=B1=C3=93=C2=B8=5E=5C=CB=9C?=\r\n =?UTF-8?Q?=EF=AC=81=5E=5C=C2=B7=5C=CB=9C=C3=98=5E?=\r\n =?UTF-8?Q?=C2=A3=CB=9C=23=EF=AC=81=5E=5C=C2=A3?=\r\n =?UTF-8?Q?=EF=AC=81=5E=5C=C2=A3=EF=AC=81=5E=5C?=\r\n');
});

it('should setContent (arraybuffer)', function() {
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ require.config({
'emailjs-addressparser': './node_modules/emailjs-addressparser/src/emailjs-addressparser',
'emailjs-mime-types': './node_modules/emailjs-mime-types/src/emailjs-mime-types',
'emailjs-mime-codec': './node_modules/emailjs-mime-codec/src/emailjs-mime-codec',
'punycode': './node_modules/punycode/punycode.min',
'emailjs-stringencoding': './node_modules/emailjs-stringencoding/src/emailjs-stringencoding',
'punycode': './node_modules/punycode/punycode',
'emailjs-stringencoding': './node_modules/emailjs-mime-codec/node_modules/emailjs-stringencoding/src/emailjs-stringencoding',
'sinon': './node_modules/sinon/pkg/sinon',
},
shim: {
Expand Down

0 comments on commit 5ab00b7

Please sign in to comment.