Skip to content

Commit f02d16a

Browse files
committed
🐛 fix(date-format.test.js): fix date format in test case to match the expected output
The date format in the test case was incorrect. It was using 'YYYY' instead of 'yyyy' for the year format. This caused the test to fail. The date format has been fixed to 'MMM dd, yyyy' to match the expected output.
1 parent 398b98a commit f02d16a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filters/date/date-format.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ it('adds a $morphDate method to the Vue prototype', () => {
1010
it('should format date', () => {
1111
const localVue = createLocalVue();
1212
localVue.use(dateFormat);
13-
expect(localVue.prototype.$morphDateFormat(new Date(2017, 6, 26), 'MMM DD, YYYY')).toEqual('Jul 26, 2017');
13+
expect(localVue.prototype.$morphDateFormat(new Date(2017, 6, 26), 'MMM dd, yyyy')).toEqual('Jul 26, 2017');
1414
});

0 commit comments

Comments
 (0)