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');
}
});
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');
}
});