Update dev dependencies
This commit is contained in:
parent
f3693674f6
commit
e559b37b72
4 changed files with 42 additions and 32 deletions
15
test/test.ts
15
test/test.ts
|
|
@ -1,14 +1,21 @@
|
|||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
import {Buffer} from 'node:buffer';
|
||||
import fs from 'node:fs';
|
||||
import net from 'node:net';
|
||||
import Stream from 'node:stream';
|
||||
import {inspect} from 'node:util';
|
||||
import test, {ExecutionContext} from 'ava';
|
||||
import test, {type ExecutionContext} from 'ava';
|
||||
import {JSDOM} from 'jsdom';
|
||||
import {Subject, Observable} from 'rxjs';
|
||||
import {temporaryFile} from 'tempy';
|
||||
import ZenObservable from 'zen-observable';
|
||||
import is, {assert, AssertionTypeDescription, Primitive, TypedArray, TypeName} from '../source/index.js';
|
||||
import is, {
|
||||
assert,
|
||||
AssertionTypeDescription,
|
||||
type Primitive,
|
||||
type TypedArray,
|
||||
type TypeName,
|
||||
} from '../source/index.js';
|
||||
|
||||
class PromiseSubclassFixture<T> extends Promise<T> {}
|
||||
class ErrorSubclassFixture extends Error {}
|
||||
|
|
@ -17,13 +24,13 @@ const {window} = new JSDOM();
|
|||
const {document} = window;
|
||||
const createDomElement = (element: string) => document.createElement(element);
|
||||
|
||||
interface Test {
|
||||
type Test = {
|
||||
assert: (...args: any[]) => void | never;
|
||||
fixtures: unknown[];
|
||||
typename?: TypeName;
|
||||
typeDescription?: AssertionTypeDescription | TypeName;
|
||||
is(value: unknown): boolean;
|
||||
}
|
||||
};
|
||||
|
||||
const invertAssertThrow = (description: string, fn: () => void | never, value: unknown): void | never => {
|
||||
const expectedAssertErrorMessage = `Expected value which is \`${description}\`, received value of type \`${is(value)}\`.`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue