34 lines
1010 B
Plaintext
34 lines
1010 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ClassMetadataFixtures = void 0;
|
|
const core_1 = require("@inversifyjs/core");
|
|
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: core_1.bindingScopeValues.Request,
|
|
};
|
|
return fixture;
|
|
}
|
|
static get withScopeUndefined() {
|
|
const fixture = {
|
|
...ClassMetadataFixtures.any,
|
|
scope: undefined,
|
|
};
|
|
return fixture;
|
|
}
|
|
}
|
|
exports.ClassMetadataFixtures = ClassMetadataFixtures;
|
|
//# sourceMappingURL=ClassMetadataFixtures.js.map |