import Contexts from './contexts'; const enums = { locale: ['en-US', 'en-GB'], }; export default class TestLocalDefinedEnumAsHeaderValueClient { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } this.enums = enums; this.contexts = new Contexts(options); } }