CabinetManager.test.js 533 Bytes
Newer Older
YazhouChen's avatar
YazhouChen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import CabinetManager from '@/domain/models/CabinetManager.js'
import {CABINET_COLLECTION, LOCATION_CABINET} from "../../../mock/deviceState/CabinetManagerMock"

describe('CabinetManager', () => {
  it('should findLocationCabinet', () => {
    let cabinetCollection = CABINET_COLLECTION
    let locationCabinet = LOCATION_CABINET

    let cabinetMgr = CabinetManager(cabinetCollection)
    let cabinetLocationList = cabinetMgr.findLocationCabinet("15465694305390000")

    expect(cabinetLocationList).to.eql(locationCabinet)
  })
})