UNPKG

@line/liff-mock

Version:

Make testing your LIFF app easy

36 lines (35 loc) 1.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.globalStore = void 0; var GlobalStore = /** @class */ (function () { function GlobalStore() { this.numberOfInitCalled = 0; this.numberOfLoginCalled = 0; } Object.defineProperty(GlobalStore.prototype, "isInitCalled", { get: function () { return this.numberOfInitCalled > 0; }, enumerable: false, configurable: true }); GlobalStore.prototype.initIsCalled = function () { this.numberOfInitCalled++; }; Object.defineProperty(GlobalStore.prototype, "isLoginCalled", { get: function () { return this.numberOfLoginCalled > 0; }, enumerable: false, configurable: true }); GlobalStore.prototype.loginIsCalled = function () { this.numberOfLoginCalled++; }; GlobalStore.prototype.resetAll = function () { this.numberOfInitCalled = 0; this.numberOfLoginCalled = 0; }; return GlobalStore; }()); exports.globalStore = new GlobalStore();