expect(configInCluster).eqls({ auth: { bearer: 'my-token' }, ca: 'my-ca',
it('has expected hooks', () => { const expected = [ 'create', 'metadata' ]; expect(plugin).to.have.property('hooks'); const hooks = Object.keys(plugin.hooks); expect(hooks).eqls(expected); expect(hooks).is.length(expected.length); });
it('should prefix extra fields with _', () => { const extra = { a: 1, b: 2, _c: 3 }; expect(GelfLogStorage.prepareExtraFields(extra)).to.be.eqls({ _a: 1, _b: 2, _c: 3 }); });
it('has expected hooks', () => { const expected = [ 'create', 'metadata' ]; expect(plugin).to.have.property('hooks'); const hooks = Object.keys(plugin.hooks); expect(hooks).eqls(expected); expect(hooks).is.length(expected.length); });