| Current Path : /home/deltalab/PMS/ims-connector/test/ |
| Current File : //home/deltalab/PMS/ims-connector/test/order.test.js |
/**
* Product connection tests
*
* Product creation, update and removal
*/
// DEPENDENCIES ====================================
const { expect, assert } = require ('chai');
const { dotenv } = require ('dotenv').config();
// RESOURCES =======================================
const orderAdapter = require ('../logic/shopify/order');
// TEST OBJECTS ====================================
const imsgid = "gid://shopify/Order/4156265103536";
// TEST CASES =======================================
describe ('orders', function () {
this.timeout(10000); // increased timeout because shopify is slow as fuk
// Initialization --------------------------------
before((done) => {
done();
});
it ('get order', async () => {
const order = await orderAdapter.getOrder(imsgid);
expect(order).to.exist;
console.log(order);
});
});