@inversifyjs/container
Version:
InversifyJs container
30 lines • 849 B
JavaScript
import { bindingScopeValues } from '@inversifyjs/core';
export class ClassMetadataFixtures {
static get any() {
const fixture = {
constructorArguments: [],
lifecycle: {
postConstructMethodNames: new Set(),
preDestroyMethodNames: new Set(),
},
properties: new Map(),
scope: undefined,
};
return fixture;
}
static get withScopeRequest() {
const fixture = {
...ClassMetadataFixtures.any,
scope: bindingScopeValues.Request,
};
return fixture;
}
static get withScopeUndefined() {
const fixture = {
...ClassMetadataFixtures.any,
scope: undefined,
};
return fixture;
}
}
//# sourceMappingURL=ClassMetadataFixtures.js.map