测试:删掉部分注释,修改用例名
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import { resResult } from '../app/pubUtils/util';
|
||||
describe('测试 ts', function() {
|
||||
it('用例1', function() {
|
||||
describe('测试工具方法', function() {
|
||||
it('测试 resResult', function() {
|
||||
const result = resResult({code: 0, simStr: 'hello'});
|
||||
console.log('ltc result: ', result);
|
||||
// console.log('ltc result: ', result);
|
||||
expect(result).to.be.an('object');
|
||||
expect(result.code).equal(0);
|
||||
expect(result.msg).equal('hello');
|
||||
|
||||
Reference in New Issue
Block a user