Skip to content

Commit

Permalink
test: update duplicate test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
BePo65 committed Mar 25, 2023
1 parent 33fbeae commit 5ff4326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/comparison.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ test('is after invalid', () => {

// isBefore()

test('is after without units', () => {
test('is before without units', () => {
const m = dayjs(new Date(2011, 3, 2, 3, 4, 5, 10))
const mCopy = dayjs(m)
expect(m.isBefore(dayjs(new Date(2012, 3, 2, 3, 5, 5, 10)))).toBe(true, 'year is later')
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/utc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('Parse UTC ', () => {
expect(dayjs.utc(d2).format()).toEqual(moment.utc(d2).format())
})

it('Parse date string without timezone', () => {
it('Parse datetime string without timezone', () => {
const d = '2017-04-22 19:50:16'
expect(dayjs.utc(d).format()).toEqual('2017-04-22T19:50:16Z')
expect(dayjs.utc(d).format()).toEqual(moment.utc(d).format())
Expand Down

0 comments on commit 5ff4326

Please sign in to comment.