Files
NapCatQQ/.pnpm-store/v3/files/c7/2b3afa557d817e087a96428a92d7cfb9252bfe94fc233ca7cd99854af43c3f119e4b52963decd38e47d340cfbe15349e9cd42226ad3dfb6bfc0318817d8bc7
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

59 lines
2.2 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
// eslint-disable-next-line vitest/prefer-describe-function-title
(0, vitest_1.describe)('ServiceIdentifier', () => {
(0, vitest_1.describe)('having an abstract class with public constructor', () => {
class AbstractFoo {
}
(0, vitest_1.it)('should be a valid ServiceIdentifier', () => {
const identifier = AbstractFoo;
(0, vitest_1.expect)(identifier).toBeInstanceOf(Function);
});
});
(0, vitest_1.describe)('having an abstract class with protected constructor', () => {
class AbstractFoo {
constructor() { }
}
(0, vitest_1.it)('should be a valid ServiceIdentifier', () => {
const identifier = AbstractFoo;
(0, vitest_1.expect)(identifier).toBeInstanceOf(Function);
});
});
(0, vitest_1.describe)('having a class with public constructor', () => {
class Foo {
}
(0, vitest_1.it)('should be a valid ServiceIdentifier', () => {
const identifier = Foo;
(0, vitest_1.expect)(identifier).toBeInstanceOf(Function);
});
});
(0, vitest_1.describe)('having a class with protected constructor', () => {
class Foo {
constructor() { }
}
(0, vitest_1.it)('should be a valid ServiceIdentifier', () => {
const identifier = Foo;
(0, vitest_1.expect)(identifier).toBeInstanceOf(Function);
});
});
(0, vitest_1.describe)('having a string', () => {
let identifier;
(0, vitest_1.beforeAll)(() => {
identifier = 'Foo';
});
(0, vitest_1.it)('should be a valid ServiceIdentifier', () => {
(0, vitest_1.expect)(identifier).toBeTypeOf('string');
});
});
(0, vitest_1.describe)('having a symbol', () => {
let identifier;
(0, vitest_1.beforeAll)(() => {
identifier = Symbol('Foo');
});
(0, vitest_1.it)('should be a valid ServiceIdentifier', () => {
(0, vitest_1.expect)(identifier).toBeTypeOf('symbol');
});
});
});
//# sourceMappingURL=ServiceIdentifier.spec-d.js.map