返回包含以下格式的当前日期的数组:
- 2007-11-23和
- 2007年11月23日星期日
示例输出: ['2007-11-23', 'Sunday, November 23, 2007']
getDateFormats
是一个函数。
testString: 'assert(typeof getDateFormats === "function", "getDateFormats
is a function.");'
- text: 应该返回一个对象。
testString: 'assert(typeof getDateFormats() === "object", "Should return an object.");'
- text: 应该返回一个包含2个元素的数组。
testString: 'assert(getDateFormats().length === 2, "Should returned an array with 2 elements.");'
- text: 应以正确的格式返回正确的日期
testString: 'assert.deepEqual(getDateFormats(), dates, equalsMessage);'
```