All files / test/interface-proxy apiProperties_test.js

100% Statements 6/6
100% Branches 0/0
100% Functions 3/3
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  1x       1x 1x 1x     1x   1x    
// import {InterfaceProxy} from '../../src/index.js';
import iProxy from './iProxy';
 
describe("instance methods properties", () => {
    // instance.method.url
    it("should have url string as a string", (done) => {
        expect(iProxy.user.url).toBe('/api/json/user');
        done();
    });
    // instance.method.buildUrl
    it("should have buildUrl as a function", (done) => {
        // TODO 为每个接口方法提供buildUrl方法,返回根据参数构造后的URL
        done();
    });
});