From: TGJG-XPS\TracyG Date: Sun, 8 Jan 2017 08:10:57 +0000 (+0000) Subject: Test case 'RFC2822 datetime with CFWSs' revised to replace the template literal with... X-Git-Tag: 2.18.0~12^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa9aea4577c3db37b6ab88e895119a63c66514f1;p=thirdparty%2Fmoment.git Test case 'RFC2822 datetime with CFWSs' revised to replace the template literal with a complex string. --- diff --git a/src/test/moment/create.js b/src/test/moment/create.js index cef7a4620..5788480ce 100644 --- a/src/test/moment/create.js +++ b/src/test/moment/create.js @@ -469,9 +469,7 @@ test('parsing RFC 2822', function (assert) { 'clean RFC2822 datetime without day'); assert.ok(moment('Tue, 1 Nov 2016 01:23:45 GMT', moment.RFC_2822, true).isValid(), 'clean RFC2822 datetime with single-digit day-of-month'); - assert.ok(moment(`(Init Comment) Tue, - 1 Nov 2016 (Split - Comment) 01:23:45 +0000 (GMT)`, moment.RFC_2822, true).isValid(), + assert.ok(moment('(Init Comment) Tue,\n 1 Nov 2016 (Split\n Comment) 01:23:45 +0000 (GMT)', moment.RFC_2822, true).isValid(), 'RFC2822 datetime with CFWSs'); });