mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add coverage report
This commit is contained in:
parent
cd2b6257f6
commit
c7a5d2456a
@ -2,5 +2,6 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
verbose: true,
|
verbose: true,
|
||||||
preset: 'ts-jest',
|
preset: 'ts-jest',
|
||||||
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**', '!**/?(*.)+test.ts'],
|
collectCoverage: true,
|
||||||
|
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**'],
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,4 +8,9 @@ describe('utils/decay', () => {
|
|||||||
oneSecondAgo.setSeconds(0)
|
oneSecondAgo.setSeconds(0)
|
||||||
expect(decayFunction(1.0, oneSecondAgo, now)).toBe(0.99999997802044727)
|
expect(decayFunction(1.0, oneSecondAgo, now)).toBe(0.99999997802044727)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('returns input amount when from and to is the same', () => {
|
||||||
|
const now = new Date()
|
||||||
|
expect(decayFunction(100.0, now, now)).toBe(100.0)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user