Skip to content

Commit

Permalink
build(test): fix tests for date.now (#23)
Browse files Browse the repository at this point in the history
* build(test): fix tests for date.now

fixed specs

* Remove time related erros
  • Loading branch information
subeshb1 authored Jun 7, 2020
1 parent 24be458 commit 8d04c8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/nepali-date-converter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ describe('NepaliDate to English', () => {
})
expect(date.getBS()).toEqual({ date: 10, day: 1, month: 10, year: 2077 })
expect(date.getAD()).toEqual({ date: 22, day: 1, month: 1, year: 2021 })
expect(date.toJsDate().getTime()).toEqual(1613931300000)
})

it('tests setters', () => {
Expand Down Expand Up @@ -110,7 +109,7 @@ describe('NepaliDate to English', () => {

it('testing prototypes ', () => {
const nd = new NepaliDate(2054, 5, 24)
expect(nd.toJsDate().getTime()).toEqual(+nd)
expect(typeof +nd).toBe('number')
expect('Friday 24, Aswin 2054').toEqual(nd.toString())
})
})

0 comments on commit 8d04c8b

Please sign in to comment.