Skip to content

Commit

Permalink
0.78.0
Browse files Browse the repository at this point in the history
- updated tests: paths, not logic
  • Loading branch information
oscarpalmer committed Nov 1, 2024
1 parent ad12ee6 commit 19a6b77
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions test/array.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/clone.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect, test} from 'vitest';
import {clone} from '../src/js/value';
import {clone} from '../src/value';

class Test {
constructor(
Expand Down
2 changes: 1 addition & 1 deletion test/colour.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
isHSLColour,
isHexColour,
isRGBColour,
} from '../src/js/colour';
} from '../src/colour';

const foregrounds = [
'black',
Expand Down
2 changes: 1 addition & 1 deletion test/emitter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect, test} from 'vitest';
import {emitter} from '../src/js/emitter';
import {emitter} from '../src/emitter';

test('emitter', () =>
new Promise<void>(done => {
Expand Down
2 changes: 1 addition & 1 deletion test/equal.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expect, test} from 'vitest';
import {equal} from '../src/js/value';
import {equal} from '../src/value';

test('any', () => {
const values = [
Expand Down
2 changes: 1 addition & 1 deletion test/function.test.ts
Original file line number Diff line number Diff line change
@@ -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<void>(done => {
Expand Down
2 changes: 1 addition & 1 deletion test/is.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
isObject,
isPlainObject,
isPrimitive,
} from '../src/js/is';
} from '../src/is';

const values = [
undefined,
Expand Down
2 changes: 1 addition & 1 deletion test/logger.test.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion test/math.test.ts
Original file line number Diff line number Diff line change
@@ -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];
Expand Down
2 changes: 1 addition & 1 deletion test/number.test.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/query.test.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 1 addition & 1 deletion test/queue.test.ts
Original file line number Diff line number Diff line change
@@ -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<void>(done => {
Expand Down
2 changes: 1 addition & 1 deletion test/random.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getRandomInteger,
getRandomItem,
getRandomItems,
} from '../src/js/random';
} from '../src/random';

const size = 100_000;

Expand Down
2 changes: 1 addition & 1 deletion test/sized.test.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion test/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
titleCase,
truncate,
words,
} from '../src/js/string';
} from '../src/string';

class ItemWithoutToString {
constructor(public value: string) {}
Expand Down
2 changes: 1 addition & 1 deletion test/value.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
setValue,
smush,
unsmush,
} from '../src/js/value';
} from '../src/value';

type Diffable = {
numbers: number[];
Expand Down

0 comments on commit 19a6b77

Please sign in to comment.