Skip to content

Commit

Permalink
fix: Remove unit test for getLocalTime
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 14, 2020
1 parent 03c063a commit f954eff
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/utils/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import {
getLanguageName,
parseUrl,
replaceToLocalOrigin,
getLocalTime,
} from './index'

it('formatSize', () => {
Expand Down Expand Up @@ -132,15 +131,6 @@ it('to', async () => {
expect(data2).toStrictEqual([])
})

it('getLocalTime', () => {
expect(getLocalTime('Thu, 19 Dec 2019 03:51:35 GMT').toString()).toBe(
'Thu Dec 19 2019 11:51:35 GMT+0800'
)
expect(getLocalTime('2014-06-01 12:00:00 +0000 UTC').toString()).toBe(
'Sun Jun 01 2014 20:00:00 GMT+0800'
)
})

it('capitalize', () => {
expect(capitalize('aBBcd')).toBe('Abbcd')
})
Expand Down

0 comments on commit f954eff

Please sign in to comment.