mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
chore(packages/stdlib): update import statement to use single quotes in mapRange function, lowercase in test desciptions
This commit is contained in:
@@ -2,4 +2,6 @@ export * from './text';
|
|||||||
export * from './math';
|
export * from './math';
|
||||||
export * from './patterns';
|
export * from './patterns';
|
||||||
export * from './bits';
|
export * from './bits';
|
||||||
export * from './structs';
|
export * from './structs';
|
||||||
|
export * from './arrays';
|
||||||
|
export * from './types';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { clamp } from "../clamp";
|
import { clamp } from '../clamp';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map a value from one range to another
|
* Map a value from one range to another
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
||||||
import { PubSub } from './index';
|
import { PubSub } from './index';
|
||||||
|
|
||||||
describe('PubSub', () => {
|
describe('pubsub', () => {
|
||||||
let eventBus: PubSub<{
|
let eventBus: PubSub<{
|
||||||
event1: (arg: string) => void;
|
event1: (arg: string) => void;
|
||||||
event2: () => void
|
event2: () => void
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
import { Stack } from './index';
|
import { Stack } from './index';
|
||||||
|
|
||||||
describe('Stack', () => {
|
describe('stack', () => {
|
||||||
describe('constructor', () => {
|
describe('constructor', () => {
|
||||||
it('create an empty stack if no initial values are provided', () => {
|
it('create an empty stack if no initial values are provided', () => {
|
||||||
const stack = new Stack<number>();
|
const stack = new Stack<number>();
|
||||||
|
|||||||
Reference in New Issue
Block a user