From 19a6b77c0eb521463c551b940b5eb157941c472e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20Palm=C3=A9r?= Date: Fri, 1 Nov 2024 15:59:31 +0100 Subject: [PATCH] 0.78.0 - updated tests: paths, not logic --- test/array.test.ts | 6 +++--- test/clone.test.ts | 2 +- test/colour.test.ts | 2 +- test/emitter.test.ts | 2 +- test/equal.test.ts | 2 +- test/function.test.ts | 2 +- test/is.test.ts | 2 +- test/logger.test.ts | 2 +- test/math.test.ts | 2 +- test/number.test.ts | 2 +- test/query.test.ts | 2 +- test/queue.test.ts | 2 +- test/random.test.ts | 2 +- test/sized.test.ts | 2 +- test/string.test.ts | 2 +- test/value.test.ts | 2 +- 16 files changed, 18 insertions(+), 18 deletions(-) diff --git a/test/array.test.ts b/test/array.test.ts index 0b96fa5..b71c395 100644 --- a/test/array.test.ts +++ b/test/array.test.ts @@ -17,9 +17,9 @@ import { toMap, toRecord, unique, -} from '../src/js/array'; -import {getRandomInteger} from '../src/js/random'; -import {diff, equal} from '../src/js/value'; +} from '../src/array'; +import {getRandomInteger} from '../src/random'; +import {diff, equal} from '../src/value'; type Item = { age: number; diff --git a/test/clone.test.ts b/test/clone.test.ts index ca3404a..3128fdb 100644 --- a/test/clone.test.ts +++ b/test/clone.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {clone} from '../src/js/value'; +import {clone} from '../src/value'; class Test { constructor( diff --git a/test/colour.test.ts b/test/colour.test.ts index c612b30..1a292c5 100644 --- a/test/colour.test.ts +++ b/test/colour.test.ts @@ -11,7 +11,7 @@ import { isHSLColour, isHexColour, isRGBColour, -} from '../src/js/colour'; +} from '../src/colour'; const foregrounds = [ 'black', diff --git a/test/emitter.test.ts b/test/emitter.test.ts index 855257e..deabd02 100644 --- a/test/emitter.test.ts +++ b/test/emitter.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {emitter} from '../src/js/emitter'; +import {emitter} from '../src/emitter'; test('emitter', () => new Promise(done => { diff --git a/test/equal.test.ts b/test/equal.test.ts index 356548d..18f4bd9 100644 --- a/test/equal.test.ts +++ b/test/equal.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {equal} from '../src/js/value'; +import {equal} from '../src/value'; test('any', () => { const values = [ diff --git a/test/function.test.ts b/test/function.test.ts index 77ed259..cd2f5bb 100644 --- a/test/function.test.ts +++ b/test/function.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {debounce, memoise, noop, throttle} from '../src/js/function'; +import {debounce, memoise, noop, throttle} from '../src/function'; test('debounce', () => new Promise(done => { diff --git a/test/is.test.ts b/test/is.test.ts index 181ae6d..970d8f7 100644 --- a/test/is.test.ts +++ b/test/is.test.ts @@ -10,7 +10,7 @@ import { isObject, isPlainObject, isPrimitive, -} from '../src/js/is'; +} from '../src/is'; const values = [ undefined, diff --git a/test/logger.test.ts b/test/logger.test.ts index f09d231..399cd65 100644 --- a/test/logger.test.ts +++ b/test/logger.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {logger} from '../src/js/logger'; +import {logger} from '../src/logger'; test('log', () => { logger.log('test'); diff --git a/test/math.test.ts b/test/math.test.ts index 6bb07d4..271a5c6 100644 --- a/test/math.test.ts +++ b/test/math.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {average, max, min, round, sum} from '../src/js/math'; +import {average, max, min, round, sum} from '../src/math'; const one = [123]; const two = [123, 456]; diff --git a/test/number.test.ts b/test/number.test.ts index a267bd7..31fc61b 100644 --- a/test/number.test.ts +++ b/test/number.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {between, clamp, getNumber} from '../src/js/number'; +import {between, clamp, getNumber} from '../src/number'; test('between', () => { const max = 20; diff --git a/test/query.test.ts b/test/query.test.ts index 7f5a38c..c50b81b 100644 --- a/test/query.test.ts +++ b/test/query.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {fromQuery, toQuery} from '../src/js/query'; +import {fromQuery, toQuery} from '../src/query'; const query = { complex: 'a=1&a=2&a=3&b=x&b=true&b=99&c=H&c=e&c=l&c=l&c=o&d.e=f', diff --git a/test/queue.test.ts b/test/queue.test.ts index 0c65967..b45e247 100644 --- a/test/queue.test.ts +++ b/test/queue.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import {queue} from '../src/js/queue'; +import {queue} from '../src/queue'; test('same callback', () => new Promise(done => { diff --git a/test/random.test.ts b/test/random.test.ts index 206b27b..aead142 100644 --- a/test/random.test.ts +++ b/test/random.test.ts @@ -8,7 +8,7 @@ import { getRandomInteger, getRandomItem, getRandomItems, -} from '../src/js/random'; +} from '../src/random'; const size = 100_000; diff --git a/test/sized.test.ts b/test/sized.test.ts index 003db6d..ce43e26 100644 --- a/test/sized.test.ts +++ b/test/sized.test.ts @@ -1,5 +1,5 @@ import {expect, test} from 'vitest'; -import * as Sized from '../src/js/sized'; +import * as Sized from '../src/sized'; const actualMax = 2 ** 24; const niceMax = 2 ** 20; diff --git a/test/string.test.ts b/test/string.test.ts index ff2826a..37b5db6 100644 --- a/test/string.test.ts +++ b/test/string.test.ts @@ -13,7 +13,7 @@ import { titleCase, truncate, words, -} from '../src/js/string'; +} from '../src/string'; class ItemWithoutToString { constructor(public value: string) {} diff --git a/test/value.test.ts b/test/value.test.ts index abdbcfd..42d544a 100644 --- a/test/value.test.ts +++ b/test/value.test.ts @@ -8,7 +8,7 @@ import { setValue, smush, unsmush, -} from '../src/js/value'; +} from '../src/value'; type Diffable = { numbers: number[];