...
|
...
|
@@ -8,12 +8,12 @@ |
|
|
|
|
|
const test = require('ava');
|
|
|
|
|
|
//const rewire = require('rewire');
|
|
|
// const rewire = require('rewire');
|
|
|
|
|
|
//const shelljs = require('shelljs');
|
|
|
// const shelljs = require('shelljs');
|
|
|
const sign = require('../../library/sign');
|
|
|
|
|
|
//let config = rewire('../../config/common');
|
|
|
// let config = rewire('../../config/common');
|
|
|
|
|
|
|
|
|
const API = require('../../library/api').API;
|
...
|
...
|
@@ -23,15 +23,15 @@ const SearchAPI = require('../../library/api').SearchAPI; |
|
|
const getUrl = 'operations/api/v6/category/getCategory';
|
|
|
|
|
|
|
|
|
//test.before('create log folder', (t) => {
|
|
|
// test.before('create log folder', (t) => {
|
|
|
// shelljs.mkdir('log');
|
|
|
// t.pass();
|
|
|
//});
|
|
|
// });
|
|
|
//
|
|
|
//test.after('delete log folder', (t) => {
|
|
|
// test.after('delete log folder', (t) => {
|
|
|
// shelljs.rm('-rf', 'log');
|
|
|
// t.pass();
|
|
|
//});
|
|
|
// });
|
|
|
|
|
|
test('api constructor test', (t) => {
|
|
|
let api = new ServiceAPI();
|
...
|
...
|
|