import Vue from 'vue'
import init from 'test/unit/init'
import { TestUtil } from 'vue-client'

describe('src/App: 主应用', () => {
  let vm = null
  before(async function() {
    init()
    // 登录
    let path = `/rs/user/liaoning/1/手机服务`
    let ret = await Vue.resetget(path)
    // 设置jwt
    Vue.$login = {jwt: ret.data.id}
  })

  it('加载表元', async function() {
    let result = await Vue.resetpost(`/rs/db/meta`,
      't_details',
      {resolveMsg: null, rejectMsg: null})
    console.log('表元数据：', result.data)
  })
  it.only('加载业务逻辑', async function() {
    let result = await Vue.resetget(`/phone/rs/dir2`,
      {resolveMsg: null, rejectMsg: null})
    console.log('业务逻辑：', result.data)
  })

})
