]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Test case 'RFC2822 datetime with CFWSs' revised to replace the template literal with...
authorTGJG-XPS\TracyG <tracyg.gilmore@gmail.com>
Sun, 8 Jan 2017 08:10:57 +0000 (08:10 +0000)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 12 Mar 2017 00:11:45 +0000 (02:11 +0200)
src/test/moment/create.js

index cef7a46202dead86f8950ff849145cbebb12e35e..5788480ce6f4f4284a09e8788f7d887245c202e0 100644 (file)
@@ -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');
 });