Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
thorkellmani committed Nov 1, 2024
1 parent 19c46cc commit 3525f5d
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ import ValidMachineLicense from '../__mock_data/validMachineLicense.json'

describe('license-service/client/machine-license', () => {
describe('check if expired', () => {
describe('get latest license qualification expiration date', () => {
it('should return the latest license right date', async () => {
const result = mapper.findLatestExpirationDate(ValidMachineLicense)
describe('get latest license qualification expiration date', () => {
it('should return the latest license right date', async () => {
const result = mapper.findLatestExpirationDate(ValidMachineLicense)

const expectedDate = new Date('2080-01-01T00:00:00Z').toISOString()
const expectedDate = new Date('2080-01-01T00:00:00Z').toISOString()

expect(result).toMatch(expectedDate)
})
it('should return undefined if no license info', async () => {
const result = mapper.findLatestExpirationDate({})
expect(result).toMatch(expectedDate)
})
it('should return undefined if no license info', async () => {
const result = mapper.findLatestExpirationDate({})

expect(result).toBeNull
expect(result).toBeNull
})
})
})
})

0 comments on commit 3525f5d

Please sign in to comment.