kuzzle-sdk
Version:
Official Javascript SDK for Kuzzle
26 lines • 852 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cucumber_1 = require("@cucumber/cucumber");
const index_1 = require("../../index");
class World extends cucumber_1.World {
constructor(options) {
super(options);
this.kuzzle = new index_1.Kuzzle(new index_1.WebSocket("localhost", { port: 7512 }));
this.index = null;
this.collection = null;
this.ids = [];
this.user = null;
this.jwt = null;
this.rights = null;
this.previousJwt = null;
this.content = null;
this.error = null;
this.notifications = [];
this.total = null;
this.callback = (notification) => {
this.notifications.push(notification);
};
}
}
(0, cucumber_1.setWorldConstructor)(World);
//# sourceMappingURL=world.js.map