UNPKG

@mokelao/leancloud-library

Version:

基于leancloud的js封装库

33 lines (30 loc) 890 B
/* eslint-disable no-undef */ // const LC = require('../dist/bundle'); // import LC from '../dist/bundle'; // import LC from '../src/index'; // const testData = { // name: 'contacts', // cateId: 71, // }; // test('test init LC', () => { // const $http = new LC(initData); // $http.interceptors.request.use( // (config) => { // // console.log(`响应拦截 ${JSON.stringify(config.AV)}`); // return Promise.reject(err); // return config; // }, // (err) => { // console.log(err); // return Promise.reject(err); // }, // ); // $http.interceptors.response.use((config) => { // // console.log(`请求拦截 ${JSON.stringify(config)}`); // return config; // }, (err) => { // console.log(err); // return Promise.reject(err); // }); // // expect($http.Query('Banner').first()) // });