* chore: add core module test cases * chore: fix tests * chore: add code coverage report * chore: split coverage step * chore: split coverage step * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * chore: update tests * chore: add web utils test cases * chore: add restful and helper tests * chore: add tests
12 lines
288 B
TypeScript
12 lines
288 B
TypeScript
import { utilizedMemory } from './memory'
|
|
|
|
test('test_utilizedMemory_arbitraryValues', () => {
|
|
const result = utilizedMemory(30, 100)
|
|
expect(result).toBe(70)
|
|
})
|
|
|
|
test('test_utilizedMemory_freeEqualsTotal', () => {
|
|
const result = utilizedMemory(100, 100)
|
|
expect(result).toBe(0)
|
|
})
|