👍 Updates app unit test suite

This commit is contained in:
Rune Harlyk
2024-02-26 15:35:15 +01:00
committed by Rune Harlyk
parent e763ecafc6
commit 46e0a47148
7 changed files with 294 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { humanFileSize } from '../../src/lib/utilities';
import { humanFileSize } from '../../src/lib/utilities/string-utilities';
describe('humanFileSize', () => {
it('returns "0B" for 0 bytes', () => {
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { toUint8, toInt8 } from '../../src/lib/utilities';
import { toUint8, toInt8 } from '../../src/lib/utilities/math-utilities';
describe('toUint8', () => {
it('min interval value should get 0', () => {
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { Result } from '../../src/lib/utilities';
import { Result } from '../../src/lib/utilities/result';
describe('Result', () => {
it('should create a success result correctly', () => {
+2 -2
View File
@@ -1,5 +1,5 @@
import { throttler } from '../../src/lib/utilities';
import { describe, it, expect, beforeEach, afterEach, test, vitest } from 'vitest';
import { describe, it, expect, beforeEach, afterEach, vitest } from 'vitest';
import { throttler } from '../../src/lib/utilities/buffer-utilities';
describe('throttler', () => {
let throttleInstance: throttler;