it("works with one singleton region and one interval region", ()=>{ const hss = new HotspotSet([[-3,-3], [0,5]]); assert.deepEqual(hss._getHotspotRegions(), [[-3,-3],[0,5]]); assert(hss.check(3)); assert(hss.check(0,5)); assert(hss.check(-1,0)); assert(!hss.check(-1)); assert(hss.check(0)); assert(hss.check(5)); assert(hss.check(5,6)); assert(hss.check(5,10)); assert(hss.check(4,6)); assert(hss.check(2,4)); assert(!hss.check(6,6)); assert(!hss.check(6,10)); assert(hss.check(-5,-1)); assert(hss.check(-3)); assert(hss.check(-3,-1)); assert(hss.check(-6,-1)); assert(!hss.check(-4,-3.5)); assert(!hss.check(-4,-4)); });
c.button.emitter.on('click', () => { assert(true); done(); });
it("soso", () => { assert(5 == 5, "aha2"); });
it('should return true for extended groupBy', () => { assert(isExtendedGroupBy({property: Property.CHANNEL})); assert(isExtendedGroupBy({property: Property.CHANNEL, replace: {x: 'xy', y: 'xy'}})); });
}).catch(function (e) { assert(_.isError(e)); done(); });
it ("Should follow the Singleton pattern", () => { let anotherInstance : MongooseConnection = MongooseConnection. getInstance(); Chai.assert(toTest == anotherInstance, "They are the same" + " instance!"); });
act.stop(StopReasons.ProcessExit, (err) => { assert(err instanceof Error) const innerAct = act.activity as TestErrorStopActivity assert(innerAct.stopCalled) done() })
it("should call next function", () => { assert(this.nextSpy.called, "function not called"); });
it("should create middleware", () => { expect(this.middleware).to.be.a("function"); assert(middleware.calledWith(Test, "test", this.descriptor)); });
it("should call response method", () => { assert(this.response.redirect.calledWith(this.options), "method not called"); });