UNPKG

recombee-api-client

Version:

Node.js client (SDK) for easy use of the Recombee recommendation API

38 lines (31 loc) 807 B
/* This file is auto-generated, do not edit */ 'use strict' var chai = require('chai').assert; var recombee = require('./../index.js'); var rqs = recombee.requests; var env = require('./set-environment.js'); describe('GetItemPropertyInfo', function(){ this.timeout(150000); before(function(done){ env.setEnvironment() .then(()=> { done(); }); }); it ('does not fail with existing properties', (done) => { let req, req2, resp; req = new rqs.GetItemPropertyInfo('int_property'); env.client.send(req) .then((res) => { chai.deepEqual('int', res['type']); req = new rqs.GetItemPropertyInfo('str_property'); env.client.send(req) .then((res) => { chai.deepEqual('string', res['type']); done(); }); }); }); });