12 lines
404 B
TypeScript
12 lines
404 B
TypeScript
import 'mocha';
|
|
import { expect } from 'chai';
|
|
import { resResult } from '../app/pubUtils/util';
|
|
describe('测试 ts', function() {
|
|
it('用例1', function() {
|
|
const result = resResult({code: 0, simStr: 'hello'});
|
|
console.log('ltc result: ', result);
|
|
expect(result).to.be.an('object');
|
|
expect(result.code).equal(0);
|
|
expect(result.msg).equal('hello');
|
|
})
|
|
}); |