Skip to content

Commit a5bab01

Browse files
committed
feat: 去除无用注释
1 parent d736600 commit a5bab01

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

packages/pont-engine/__tests__/pont.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as path from 'path';
55
import httpServer = require('http-server');
66
import * as fs from 'fs-extra';
77
import { createManager } from '../src';
8-
// import { Translator } from '../src/translate';
98
import { Manager } from '../src';
109
import { SwaggerDataSource } from '../src/compatible/scripts/swagger';
1110

@@ -91,15 +90,6 @@ describe('pont功能测试', () => {
9190
assert.ok(!apidts.includes(wrongCode));
9291
});
9392

94-
// test('api.d.ts should translate chinese of baseClass to english', () => {
95-
// let dict: { [key: string]: string } = Translator.dict;
96-
// ['通用请求参数token', '输出参数vo', '查询参数', 'abc输出参数', ' 中英文 混合 带 空格 Vo '].forEach(cnKey => {
97-
// const enKey = dict[cnKey];
98-
// assert.ok(enKey);
99-
// assert.ok(apidts.includes(enKey));
100-
// });
101-
// });
102-
10393
test('api.d.ts should transform Map without template params to object', () => {
10494
let rightCode = oneline(`
10595
export namespace getAllMsgForMap {

packages/pont-engine/src/utils/pinyin.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,6 @@ const pinyin = (function () {
807807
getFullChars: function (str) {
808808
let result = '',
809809
name;
810-
// let reg = new RegExp('[a-zA-Z0-9- ]');
811810
for (let i = 0, len = str.length; i < len; i++) {
812811
let ch = str.substr(i, 1),
813812
unicode = ch.charCodeAt(0);
@@ -835,7 +834,6 @@ const pinyin = (function () {
835834
for (let key in this.full_dict) {
836835
if (-1 !== this.full_dict[key].indexOf(str)) {
837836
return this._capitalize(key);
838-
break;
839837
}
840838
}
841839
return false;

0 commit comments

Comments
 (0)