Skip to content

Commit

Permalink
test: rename test name
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Dec 14, 2023
1 parent 501d20a commit 072f5c0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/helper/dep-helper.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Helper from '../../src/helper/dep-helper';
import { ConstructorOf } from '../../src';

describe(__filename, () => {
describe('dep helper', () => {
let Parent: ConstructorOf<any>;
let Constructor: ConstructorOf<any>;

Expand Down
2 changes: 1 addition & 1 deletion tests/helper/injector-helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ConstructorOf, InstanceOpts } from '../../src';
// eslint-disable-next-line
const pkg = require('../../package.json');

describe(__filename, () => {
describe('injector helper', () => {
let Parent: ConstructorOf<any>;
let Constructor: ConstructorOf<any>;

Expand Down
2 changes: 1 addition & 1 deletion tests/helper/is-function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
CreatorStatus,
} from '../../src';

describe(__filename, () => {
describe('is function', () => {
class A {}
const clsToken: Token = A;
const strToken: Token = 'strToken';
Expand Down
2 changes: 1 addition & 1 deletion tests/helper/parameter-helper.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Helper from '../../src/helper/parameter-helper';
import { ConstructorOf } from '../../src';

describe(__filename, () => {
describe('parameter helper', () => {
let Parent: ConstructorOf<any>;
let Constructor: ConstructorOf<any>;

Expand Down
2 changes: 1 addition & 1 deletion tests/helper/provider-helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Injectable,
} from '../../src';

describe(__filename, () => {
describe('provider helper', () => {
@Injectable()
class A {}
const clsToken: Token = A;
Expand Down
2 changes: 1 addition & 1 deletion tests/helper/reflect-helper.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Helper from '../../src/helper/reflect-helper';
import { ConstructorOf } from '../../src';

describe(__filename, () => {
describe('reflect helper', () => {
let Parent: ConstructorOf<any>;
let Constructor: ConstructorOf<any>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Helper from '../../src/helper/utils';

describe(__filename, () => {
describe('utils helper', () => {
it('uniq', () => {
const obj = {};
const arr = [1, 2, obj, obj, 3];
Expand Down
2 changes: 1 addition & 1 deletion tests/use-case.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { asSingleton, Autowired, Inject, Injectable, Injector } from '../src';
import * as Error from '../src/error';

describe(__filename, () => {
describe('use cases', () => {
it('使用 Autowired 动态注入依赖', () => {
const spy = jest.fn();
@Injectable()
Expand Down

0 comments on commit 072f5c0

Please sign in to comment.