/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */

/**
 * OCC
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: v2
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 */

import expect from 'expect.js'
import Occ from '../config'

let instance
const {order} = Occ

beforeEach(() => {
    instance = new Occ.OrdersApi()
})

describe('OrdersApi', () => {
    describe('getOrder', () => {
        it('should call getOrder successfully', function(done) {
            instance.getOrder(order.code)
                .then((res) => {
                    expect(res.code).to.equal(order.code)
                    expect(res.status).to.equal(order.status)
                    expect(res.guestCustomer).to.equal(order.guestCustomer)
                    expect(res.deliveryStatus).to.equal(order.deliveryStatus)
                    order.fields.forEach((element) => {
                        expect(res).to.have.property(element)
                    }, this)
                    done()
                })
        })
    })
})
