import assert from 'assert'
import init from '../init'
import {trans} from 'vue-client'
import Comp from "../../../examples/SafePlanItem/comp";

describe('安检计划項目管理', () => {
  before( async () => {
    init()
    await trans.begin()
  })

  after( async () => {
    await trans.rollback()
  })

  it('加载活动', async () => {
    let c=new Comp();
    await c.getCheckSend(1)
    assert.equal(1, c.checkSend.list.data.length)
  })
  it('加载更多用户地址信息', async () => {
    let c=new Comp();
    await c.searchUser()
    await c.loadMore("user")
    assert.equal(40, c.user.list.data.length)
  })



})
