UNPKG

openapi-node

Version:

A Node library to interact with the Wix Hive (RESTful API)

31 lines (25 loc) 805 B
/** * Created by Karen_Cohen on 7/16/14. */ var should = require('should'); var config = require("./config.js"); var APP_SECRET = config.appSecret; var APP_KEY = config.appKey; var INSTANCE_ID = config.instanceId; var wixLib = require( '../lib/WixClient.js' ); var api = wixLib.getAPI(APP_SECRET,APP_KEY, INSTANCE_ID); describe('Sites', function() { this.timeout(10000); describe('getSite', function() { it('should return return Site address', function(done) { api.Sites.getSite() .then(function(data) { data.should.not.equal(undefined); console.log(data); done(); }, function(error) { done(error); }).done(null, done); }); }); });