UNPKG

architect-node-sdk

Version:

Essentialz Architect Nodejs SDK

31 lines (30 loc) 1.13 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var Client_1 = __importDefault(require("../core/Client")); describe('Architect test', function () { it('Should contain', function () { var architect = (0, Client_1.default)({ baseUrl: 'https://nikola.essentialz.cloud', }); expect(architect).toBeInstanceOf(Object); }); // it('Should call proper url', () => { // const architect = client<Schema>({ // baseUrl: 'https://nikola.essentialz.cloud', // }); // return expect(architect.categories // .search({ title: { _contains: 'ping' } })) // .resolves.toBeInstanceOf(Array); // }); // // it('Has one item', () => { // const architect = client<Schema>({ // baseUrl: 'https://nikola.essentialz.cloud', // }); // return expect(architect.categories.search({ title: { _contains: 'ture' } })) // .resolves.toHaveLength(1); // }); });