From: TGJG-XPS\TracyG Date: Mon, 6 Mar 2017 20:30:06 +0000 (+0000) Subject: Changed parsingFlags().rfc2822 from a function call X-Git-Tag: 2.18.0~12^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f32a6017ff25b6c528c0f97164b2ba45a30a0cc0;p=thirdparty%2Fmoment.git Changed parsingFlags().rfc2822 from a function call --- diff --git a/src/test/moment/create.js b/src/test/moment/create.js index 7337da16e..89cf5f407 100644 --- a/src/test/moment/create.js +++ b/src/test/moment/create.js @@ -471,7 +471,7 @@ test('parsing RFC 2822', function (assert) { for (testCase in testCases) { var testResult = moment(testCases[testCase], moment.RFC_2822, true); assert.ok(testResult.isValid(), testResult); - assert.ok(testResult.parsingFlags().rfc2822(), testResult + ' - rfc2822 parsingFlag'); + assert.ok(testResult.parsingFlags().rfc2822, testResult + ' - rfc2822 parsingFlag'); } }); @@ -485,7 +485,7 @@ test('non RFC 2822 strings', function (assert) { for (testCase in testCases) { var testResult = moment(testCases[testCase], moment.RFC_2822, true); assert.ok(!testResult.isValid(), testResult); - assert.ok(!testResult.parsingFlags().rfc2822(), testResult + ' - rfc2822 parsingFlag'); + assert.ok(!testResult.parsingFlags().rfc2822, testResult + ' - rfc2822 parsingFlag'); } });