UNPKG

recombee-api-client

Version:

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

46 lines (39 loc) 963 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('GetUserPropertyInfo', 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.GetUserPropertyInfo('int_property'); env.client.send(req,((err,res) => { if(err) { chai.fail(); } else { chai.deepEqual('int', res['type']); req = new rqs.GetUserPropertyInfo('str_property'); env.client.send(req,((err,res) => { if(err) { chai.fail(); } else { chai.deepEqual('string', res['type']); done(); } })); } })); }); });